I have a project and I will need to make lots of levels with lightmaps.
I tested by building only my first level. Here is the editor log for the build
Textures 11.5 mb 25.4%
Meshes 625.4 kb 1.3%
Animations 9.9 kb 0.0%
Sounds 1.9 mb 4.2%
Shaders 475.0 kb 1.0%
Other Assets 38.0 kb 0.1%
Levels 25.9 mb 57.1%
Scripts 854.6 kb 1.8%
Included DLLs 3.9 mb 8.7%
File headers 91.1 kb 0.2%
Complete size 45.3 mb 100.0%
The output apk is 36.2 mb even though it shows 45.3 mb here.
I duplicated the scene, made a small change and lightmapped again and build a new apk with those 2 scenes.
Both of the scenes’ lightmap is 4mb as shown in the lighting window of the editor.
So I expected the apk size to increase from 36.2 mb to 40.2 since the lightmap is only thing added. Both scenes are built with identical gameobjects, only on object’s position changed to build a different lightmap.
But the second build’s editor log shows as below
Textures 15.5 mb 20.7%
Meshes 625.4 kb 0.8%
Animations 9.9 kb 0.0%
Sounds 1.9 mb 2.5%
Shaders 475.0 kb 0.6%
Other Assets 40.0 kb 0.1%
Levels 51.7 mb 68.8%
Scripts 854.6 kb 1.1%
Included DLLs 3.9 mb 5.2%
File headers 95.2 kb 0.1%
Complete size 75.1 mb 100.0%
And the second apk size is 46.4 mb.
So how do I need to read this size info?
It shows double increase in the level size unexceptedly and shows 4 mb increase in the texture as expected.
Why is the apk size goes 10.2 mb up instead of just 4mb?
If anyone can explain this in detail, I would be very appreciated.
Thanks