I looked it up and I was told to refer to the Editor Output log to find out what is taking up space. While I got this:
Textures 4.7 mb 30.9%
Meshes 82.5 kb 0.5%
Animations 21.4 kb 0.1%
Sounds 18.1 kb 0.1%
Shaders 1.4 mb 9.3%
Other Assets 3.1 mb 20.3%
Levels 412.6 kb 2.7%
Scripts 846.9 kb 5.4%
Included DLLs 3.9 mb 25.9%
File headers 739.5 kb 4.8%
Complete size 15.2 mb 100.0%
Now, if my game was actually 15.2 MB, that would be fine.
But I put the build into a folder, when right clicking and looking at properties I am told 39.8 MB. It’s not exactly a large file size, but it would be nice if I got some honesty from the logs, otherwise how can I accurately find out what in my project is taking up the most space. If I’m not accurately being told the size, then how can I trust the log at all.
Any help would be greatly appreciated
Confused, Optimistic, Curious.
Sincerely,
Blake Gillman
It editor log doesn’t include the actual executable. Which is around 20 Mb now.
Alright, so my game is going to be 20 MB no matter what?
I just built a completely empty project,
The editor log says:
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 13.9 kb 0.3%
Other Assets 0.4 kb 0.0%
Levels 1.1 kb 0.0%
Scripts 885.0 kb 17.9%
Included DLLs 3.9 mb 81.5%
File headers 12.4 kb 0.3%
Complete size 4.8 mb 100.0%
The actual build is 26.0MB
So it’s roughly 21 Mb more than what the editor log file reports.
There might be some settings in the Player settings to be tweaked to reduce this, but I haven’t ever tried to look into this.
What platform are you building for? the size will vary.
I recently attempted an empty project build for WebGL, the total size was about ~ 3 mb.
On Android, the Unity libraries alone will take around 10 mb. The default option is to create a FAT APK (contains both x86 and ARM libraries) so it should be double - 20 mb.
I’m building for Windows.
That’s good to know though, that means I can roughly estimate that my project is actually only about 15MB large. The player is just taking up the rest of the space.