Hi guys,
First, I’m sorry if this has been answered already, I have looked and I can’t find a clear answer about it. This is my first game so I’m sure the solution is super simple.
I have a mobile game that I’m developing and I want to get the apk file size down. Currently I’m sitting at 20mb which isn’t bad and if that’s as low as it’s going to go, cool.
I have selected ARMv7 for my device filter setting and that has dropped my .apk file down from 29->20mb.
I have opened my editor log after building and found this info:
Build Report
Uncompressed usage by category:
Textures 18.4 mb 57.1%
Meshes 187.2 kb 0.6%
Animations 8.3 kb 0.0%
Sounds 1.6 mb 4.9%
Shaders 6.2 mb 19.1%
Other Assets 186.1 kb 0.6%
Levels 748.4 kb 2.3%
Scripts 760.9 kb 2.3%
Included DLLs 3.9 mb 12.2%
File headers 320.5 kb 1.0%
Complete size 32.3 mb 100.0%
Used Assets and files from the Resources folder, sorted by uncompressed size:
6.4 mb 19.7% Assets/Resources/CrossIcon.png
6.2 mb 19.3% Resources/unity_builtin_extra
1.7 mb 5.2% Assets/Resources/track.png
1.5 mb 4.6% Assets/_Sounds/B4.mp3
1.3 mb 4.1% Assets/NeonShapes/PNG/RedSquare.png
1.3 mb 4.1% Assets/NeonShapes/PNG/BlueSquare.png
1.2 mb 3.8% Assets/Resources/TutorialIcon.png
1.1 mb 3.5% Assets/NeonShapes/PNG/Field.png
As far as I can tell, I need to be looking at my textures to reduce my file size. So I looked at the CrossIcon.png file hoping that I could just get a much smaller image for that as it’s just an icon in my main menu. The file is 17kb. That’s right 17k. How is it showing up as taking 6.4mb? All of those other .png files there are also in the 15-20kb range. I feel like I’m doing something really stupid and it’s a really simple fix.
What can I do to reduce the size of my game?
Almost all of the textures and images that I have used are tiny little files. The graphics are super simple (think tron) and I don’t have any high res textures. My whole assets folder is only 12.4mb in explorer and that’s with dozens of extraneous pictures in it. None of those extra pictures show up in this build log so I don’t think they are causing a problem.