Change splash screen color from within game? (Unity Personal)

Hi everyone,

My game normally has a consistent light background color and I have set the splash screen background color to match. However, I’m now adding dark mode which changes the background color to a dark variant. This all works well, but when starting the game I now still get the “light mode” splash screen and that’s a bit jarring.

I’m currently using Unity Personal, which forces the use of the splash screen with the Unity logo. Otherwise I could have created a custom splash screen scene that I could manage completely myself, background color included.

So here’s the question: Is there a way to change the splash screen background color from within the game? I’m afraid the answer is no, but if anyone can confirm this I can stop searching lol

The only other solution/compromise I can think of is to change the splash screen background color to a value that would not be as jarring as the light to dark transition when in dark mode. But I would prefer to make it dynamic of course!

Thanks,
Rutger

Hi. This is only possible from the editor, you can’t make changes in the player.
The splash runs before your scripts so how would you have changed the background?

The moment I would like to change/configure it would be when the dark mode setting is changed. So while the game is running I would like to be able to configure what the splash color will be for the next time the game starts. That way there is no need for running scripts before the splash screen.

Unfortunately, that would not be possible. You can not make changes to the PlayerSettings after a build, any changes you make will not be saved when the game quits so this would not work. So exposing a property in the player for this would not be much use without a way to save that change after the player closes, which is not something we currently support.

So your original suggestion of using a more generic color sounds the most appropriate. You can have another scene load which does the transition from that into a themed color with some additional splash logos.

I was afraid you’d say something like that :slight_smile:

Either way, good to have it confirmed. I can imagine I’m not the only one trying to edit player settings after build like this, so maybe this could be considered a feature request?

For now I’ll stick with a generic color and fade to the correct color.

Thanks for the help!

1 Like