Setting background color for static splash image

I’d like to customize the presentation of the static splash image, but I have had no luck with changing the background color away from the default: black.
The animated Splash Screen is not a viable replacement, as it appears after the static splash image, at which point I can just display a Unity scene.

6333690--702903--upload_2020-9-21_16-18-29.png

I tried messing around with the Android style, but it only changes the color for a brief moment while transitioning to the app (before the static splash image is shown):

<style name="UnityThemeSelector" parent="BaseUnityTheme">
    <item name="android:windowBackground">@android:color/black</item>
</style>

^ This value is only relevant for the animated splash screen, and otherwise does nothing.

Is there no way of actually setting the background color for this?
I’m using Unity Pro, 2019.4.9f1.

Sidenote: what’s up with the duplicated styles? When I export a project, the same styles are present in both launcher/src/main/res and unityLibrary/src/main/res

For anyone interested, I ended up just using a 2048x2048 png with the background color baked in directly. As long as it had a flat color, it compressed nicely. Also changed the scaling method in Player Settings to “Scale to fill (cropped)” and customized the ‘android:windowBackground’ value mentioned above to get a nice transition from native android to the Unity static splash.

3 Likes