Search Unity

Question 78mb User Assets, 170.39MB .aab Build Size

Discussion in 'Editor & General Support' started by emomartian, Jan 15, 2023.

  1. emomartian

    emomartian

    Joined:
    Sep 30, 2013
    Posts:
    5
    Hello!

    For months I've been dealing with unreasonably large build sizes in my mobile game. It's a fairly small game - Two 2D canvas screens (asset bundle loading, login) and two 3D scenes (main menu, game level.) I've moved every asset referenced in my editor logs/build report into asset bundles, yet the build size is still massive! I'm not sure what I could be missing. Here is my latest report from the editor logs when trying to build an Android bundle:

    Build Report
    Uncompressed usage by category (Percentages based on user generated assets only):
    Textures 66.5 mb 85.3%
    Meshes 3.3 mb 4.2%
    Animations 1.7 mb 2.2%
    Sounds 1.3 mb 1.7%
    Shaders 2.0 mb 2.6%
    Other Assets 2.8 mb 3.6%
    Levels 0.0 kb 0.0%
    Scripts 137.4 kb 0.2%
    Included DLLs 0.0 kb 0.0%
    File headers 136.1 kb 0.2%
    Total User Assets 78.0 mb 100.0%
    Complete build size 879.7 mb

    As you can see, the majority of my assets are in Textures, which occupy only 66.5mb.

    I've tried adding scenes to the build one at a time and found:
    Asset bundle scene (and Asset bundle screen + login scene) 40-45mb
    With addition of Main Menu Scene: 112mb
    With addition of Game Scene: 170.39mb

    So, each of my 3D scenes are adding 60mb or so to the build! Are there any hidden assets not tracked by the build report that I may be missing?

    Thank you so much!

    Edit: When I compile JUST the Game Scene the total build size is 113.35MB!
    Unity Version: 2022.1.20f1. Issue has persisted across several 2022.x versions.
     
    Last edited: Jan 15, 2023
  2. emomartian

    emomartian

    Joined:
    Sep 30, 2013
    Posts:
    5