How to compress apk size in unity3d

I am making a simple test game in unity 3d using C #, the apk size of my game is 70 MB. I reduced the resolution of each sprite, but still 58 MB, how do I compress the game so that the apk file has the smallest possible size.

+4
source share
4 answers

In addition to this short Unity tutorial , there are a couple things to keep in mind:

  • Files that are not used or depend on them are deleted by Unity upon creation.
  • Textures, music, and video take up most of the size. Sound files should ideally be .mp3format (otherwise .wavfor very short clips).

Editor.log, .

+2

Arm7. , , , apk. ( → → ). , , .

: http://answers.unity3d.com/questions/971648/device-filter-to-arm-7-only.html

, , , ( , ). , , , . , , .

.

Build Report
Uncompressed usage by category:
Textures      81.1 mb    92.0% 
Meshes        0.0 kb     0.0% 
Animations    17.1 kb    0.0% 
Sounds        0.0 kb     0.0% 
Shaders       90.0 kb    0.1% 
Other Assets  549.9 kb   0.6% 
Levels        338.3 kb   0.4% 
Scripts       993.0 kb   1.1% 
Included DLLs 5.1 mb     5.8% 
File headers  33.1 kb    0.0% 
Complete size 88.2 mb    100.0% 

: https://docs.unity3d.com/Manual/LogFiles.html

+1

(32, 64, 128, 256, 512, 1024, 2048, 4096, 8192)

567x890 , 1024x1024 png.

. 20%.

, .

: 567x890 , 1,9

: 1024x1024 , 1.3MB

: 0.6MB , 32%.

: https://drive.google.com/file/d/0B9zkzr6JdNYlaHhqcDVUSk9KNjA/view

0

/.

: https://docs.unity3d.com/Manual/class-TextureImporterOverride.html

Most texture compression formats require an image with a resolution of 2 (128, 256, 512, 1024, 2048). Resolutions 4096 and 8192 may not work on some Android devices.

For example, an alpha-free texture in 1024x1024 resolution using RGB ETC2 compression takes about 0.5 MB in memory. A 1280x800 image with a 16bit RGB compression format takes 2 MB.

0
source

Source: https://habr.com/ru/post/1687251/


All Articles