File is WAY bigger than it should be, can't publish

Hello,

I am currently doing the tutorials. I am now at the part where I made a game with a ball, getting on some track, and not hitting the bottom. It is very simple, very minimal, not textures because I wanted to move on to learn more… but my game is build size: 3,95 GB.

This should not be possible with how small this game is, but somehow it turned into this.

Now I am kind of stuck because I want to finish that tutorial before moving on. What did I do wrong?

I am using WEBGL for this.

check build report (from editor.log Unity - Manual: Log files )
or maybe this package works also About Build Report Inspector | Build Report Inspector | 0.1.2-preview

it shows file sizes in the build.

Also check if Assets/StreamingAssets/ folder contains some not needed files.

And check from build settings, that you have compression enabled.

1 Like
  1. 3.95 Gb is rather big
  2. Don’t use WebGL, it obviously makes the file sizes too big.
  3. Nobody uses WebGL anyway, build it for either standalone PC or Android/Iphone.

WebGL is definitely being used. Depends on your target audience etc.
The latest lts also has better WebGL compression.

I already checked that, but I could still not figure out how that would be the problem:

Textures 0.0 kb 0.0%
Meshes 0.0 kb 0.0%
Animations 0.0 kb 0.0%
Sounds 0.0 kb 0.0%
Shaders 62.8 kb 23.9%
Other Assets 3.7 kb 1.4%
Levels 0.0 kb 0.0%
Scripts 156.5 kb 59.6%
Included DLLs 0.0 kb 0.0%
File headers 39.4 kb 15.0%
Total User Assets 262.5 kb 100.0%
Complete build size 6.5 mb

Thanks for the tip. For my own future project, I will consider different ways, but this was for the tutorial, and it is good to figure out what went wrong. Ofcourse if no one knows, I’ll leave it as is, but I’d like to try. :slight_smile:

What did you include in the zip of the build? IL2CPP cache also is in the same Directory maybe. A screenshot of the directory of the build might be helpful.

And what unity version do you use? 2021 lts?

I do use 2021.3.10f1.
For IL2CPP I chose smaller builds.
I am not sure what Directory you mean exactly. From what I can see, the map with all the documents for this project and it says it onl contains less than 550mb.

What is in the game zip file?
Also the folders with DoNotShip (which you, well, shouldnt ship)?