We build several different variations of our game using the same Unity project and codebase. One thing we need to do is change the launch image for different territories.
Unfortunately, Unity doesn’t seem to provide any script API for changing the launch image via PlayerSettings. It is possible to change icons, but not launch image settings.
We can pretty easily swap textures by simply overwriting the launch texture with a different one. However, with the new launch image system, there seems to be no way to change the “Launch Screen Type” or “Background Color” via script. The “Background Color” is particularly problematic because we are working with two partners who use entirely different branding and color schemes.
Is there any way I can get to these settings via script? I couldn’t find any exposed API for this. I sleuthed around with the Assembly Browser to see if I might be able to use Reflection to change the needed data, but thus far, I haven’t found the relevant fields buried in any of the editor classes.
It seems like very valuable functionality to have, and I’m surprised that these properties aren’t exposed - it doesn’t seem like a huge undertaking to make it work!