- Home /
Complete size calculation does not match
I checked the build size in the editor log, but complete size does not match from the sum of all.
Textures 6.4 mb 9.6%
Meshes 0.0 kb 0.0%
Animations 60.0 kb 0.1%
Sounds 2.2 mb 3.3%
Shaders 339.8 kb 0.5%
Other Assets 3.1 mb 4.6%
Levels 13.6 mb 20.4%
Scripts 1.5 mb 2.2%
Included DLLs 3.9 mb 5.9%
File headers 225.0 kb 0.3%
Complete size 66.6 mb 100.0%
In my calculation complete size will be 31mb. What is the rest 35mb?
Unity Version: 5.5.2f1 Personal
Building for iOS and Android.
Answer by Bunny83 · Apr 12, 2017 at 01:09 AM
That's simply the engine's core. You have ignored the percent information given in the listing. Those add up to about 46.9%
66.6 * 46.9 / 100 == 31.2354
So everything listed here is correct, it just don't list certain overhead explicitly. "Scripts" only covers your own scripts. The actual engine is not covered in this listing. This is just an asset list
Thank you for your comment!
One question remains. If it is log of other people, it adds up to about 100%, but in my editor.log it add up to about 46.9%. Is this depending on the build setting or version of Unity to include or not include engine's core in the editor.log?
Example) http://answers.unity3d.com/questions/780788/unity-build-complete-size-does-not-match-app-size.html
Yes, it most likely depends on the build target. The process of creating a build is very different depending on the platform. Of course the Unity version also has an impact on the build size. In general the newer the Unity version the larger the engine core since new features are added over time. However at the same time code and module stripping also improves. So it's not guaranteed that a newer version always results in a larger build.
Your answer
Follow this Question
Related Questions
testing ios build on device 3 Answers
Cannot build the application neither for Android not for iOS 2 Answers
How do you manage your Free and Paid Android/iOS game(C#) 1 Answer
Play web game through mobile device 1 Answer
Will Admob work for iOS? 1 Answer