- Home /
Programmatically set Splash Screen
I'd like to programmatically set the splash screens for my iOS app using an editor script. I already can set the icons like this:
PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.iPhone, icons);
But I can't seem to find a similar method to set the mobile splash screen images. I can change the image fine using the PlayerSettings inspector in the editor.
Thanks!
Answer by iwaldrop · Jan 23, 2013 at 10:22 PM
Does nobody use search anymore?
And it was broken for quite a while, I'm surprised it's back :D
This doesn't answer question at all. One of the links is broken.
Well it is a 2 year old post. Things move around...
Having tackled this problem since I realize that the question being asked is actually rather harder than it first appeared, and apologize for having dismissed it. Search does uncover the answer to most things, but this is one where it did not.
What we ended up doing was setting the iOS launch image to a placeholder and then overwriting that using the Asset Database stuff to literally replace it with another image at build time. This typically occurs on a build server which does a fresh checkout every build so it's not a big deal. Locally, however, I just use a PostProcessBuild method to reset it.