Hello all. I am making my first game on Unity and yesterday I saw that my previous version of my game is 34mb, but after I made some menu(!) animations and textures(they are all in 2d) my game became 68mb. But the folder with all textures is only 1mb. Guys, can you say me what can take up so much memory? Scripts? Animator and animation? Or how can I decrease the size of my app? I read the on google play apk can be only 100mb(?).
Waiting for your advices and thank you!
Textures, sounds and animations can cause the game size to grow quickly from my experience.
The size of your source assets, such as your textures folder, is most likely irrelevant. Unity imports each of these assets and creates its own representation of them.
However, there are many things why an imported asset can have a different (file)size than the source asset. Let’s take a 100x90 jpg image as an example.
Jpg isn’t a GPU format, therefore Unity converts it into something else (depending on platform).
GPU’s often require textures to be square, power-of-two and being a multiple of 4.
100x90 does not fulfill any of these requirements, so Unity fixes these issues for you during import.
Now the 100x90 jpg might be ending up as a 128x128 ETC1 image for example, which has a different memory footprint than the original asset.
There are many details that can have impact to the size.
I recommend to take a look at the following page as a starting point: