Search Unity

Question The texture of the splash screen logo in the build.

Discussion in 'Web' started by viruseg, Apr 20, 2023.

  1. viruseg

    viruseg

    Joined:
    Jul 8, 2017
    Posts:
    23
    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)

    Unity 2022.2.15
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,005
    Easiest way is to get a paid Unity license.
    I'm not aware of other alternatives that aren't illegal.
     
  3. ConorsFlying

    ConorsFlying

    Joined:
    Apr 26, 2018
    Posts:
    8
    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.
     
  4. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    6,005
    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).
     
  5. Il-Ko

    Il-Ko

    Joined:
    Jun 14, 2016
    Posts:
    22
    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.
     
  6. Worker264

    Worker264

    Joined:
    Jun 10, 2023
    Posts:
    1
    Yeah, -2mb to the build size just for 400$ a year is cool
     
  7. DudoTheStampede

    DudoTheStampede

    Joined:
    Mar 16, 2015
    Posts:
    81
    I actually had to report that as a bug to have a solution...

    It's a little counterintuitive but you have to:
    1. go to Player Settings
    2. ENABLE Show Unity Splash Screen
    3. you should see "Show Unity Logo" enabled. Disable it!
    4. Disable Show Unity Splash Screen
    5. Restart the Editor
    6. Now your build are free from the Unity Logo!

    That's it! ^_^
     
  8. viruseg

    viruseg

    Joined:
    Jul 8, 2017
    Posts:
    23
    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.

    2023-06-26 22-23-32.png

    2023-06-26 22-24-03.png

    2023-06-26 22-29-39.png

    2023-06-26 22-32-20.png

    All images can not be placed in one post, so continue in the next one.
     
    Ryiah likes this.
  9. viruseg

    viruseg

    Joined:
    Jul 8, 2017
    Posts:
    23
    2023-06-26 22-31-35.png

    2023-06-26 22-37-51.png

    2023-06-26 22-38-28.png

    2023-06-26 22-38-50.png
     
    Ryiah likes this.
  10. SergeiKuznetcov1

    SergeiKuznetcov1

    Joined:
    Oct 1, 2021
    Posts:
    1
    so all fine and we can just use standard build settings or is there some specific way to build with LZMA compression for minimal size?
     
  11. viruseg

    viruseg

    Joined:
    Jul 8, 2017
    Posts:
    23
    Use the standard build settings. The logo as well as all other resources will be compressed.