The WebGL build includes the file “UnitySplash-Dark(Clone)”, its size is 2 mb, which is almost a quarter of the size of my entire build. Which is a lot. This file is the Unity logo that is displayed when you start the game. I can’t disable the splash screen on my free account. In the Build Settings window, you can enable texture size override, but this setting has no effect on the texture of the splash screen logo.
How can I reduce the size of this texture?
This is how this file is recorded in the build logs:
Used Assets and files from the Resources folder, sorted by uncompressed size:
2.0 mb 22.7% Built-in Texture2D: UnitySplash-Dark(Clone)
I believe there may be a bug in Unity 2022 that makes it always stay in the build. We have a paid licence and its there wheather “Show Splash Screen” is ticked or not.
At the time you made the build, was that made in an instance of Unity while an account was signed in that has the pro license?
Also make sure to build to a new, empty folder and delete the app from the device before transfer. Just to rule out any caching or confusion (eg started or transferred an older app version).
I also have a paid license, but I experience the same problem in the last few months’ versions (I am now using 2022.3.1f1). I have tried changing all the possible settings and cleared any kind of cache. I think it is some kind of regression.
I did an experiment that shows that you can not worry about the logo that gets into the build.
2.7 mb is the size of the uncompressed file, which we see in the build log.
Size after compression:
LZ4 - 75.2 kb
LZMA - 44.5 kb
Below are screenshots to show the essence of the experiment.
I extracted the logo from the build with RenderDoc. And put it into a separate archive using Addressable Asset System.