Himmu
Himmu

Reputation: 1

How to reduce unity android game size?

Hello buddies I just build my first demo project in unity just for learning purpose and the size of apk file was 21 mb so how can I reduce my apk size? I have seen many games that have size less than 5 mb, how do they build these kind of game? Do they use some different game engines? Thanks 😊

Upvotes: 0

Views: 6125

Answers (2)

Ausländer
Ausländer

Reputation: 499

of course you can override image size for android , but i recommend you to build under arm v7 architecture , not x86 + armv7 , there are few mobile phone now that uses x86 architecture , you can reduce you game until 11mb , In build section change architecture . If i answered your question please mark as answered

Upvotes: 1

David
David

Reputation: 16277

Assets are the most likely candidates for optimization. This information is available in the Editor Log just after you have performed the build. Go to the Console window (menu: Window < Console), click the small drop-down panel in the top right, and select Open Editor Log.

The Editor Log just after a build:

enter image description here

Suggestions for reducing build size

  • Textures: select the Texture in the Project view, and in the Inspector window reduce the Max Size.
  • Meshes and Animations: set the Mesh Compression to Low, Medium or High. Mesh and Animation compression uses quantization, which means it takes less space, but the compression can introduce some inaccuracies. Experiment with what level of compression is acceptable for your models.
  • Reducing mobile .NET library size: ou should avoid any dependencies on System.dll or System.Xml.dll. Unity does not include these in the built player by default, but if you use their classes, they are included. These DLLs add about a megabyte to the player’s storage size. If you need to parse XML in your game, you can use a library like Mono.Xml.zip as a smaller alternative to the system libraries. While most Generic containers are contained in mscorlib, Stack and few others are in System.dll, so you should avoid these if possible.

Refer to this link for more details.

Upvotes: 2

Related Questions