علت حجم بالای خروجی اندروید در بازی های یونتیی 5
نکته اول:
ابتدا از پنجره ی build به مسیر Player Settings -> Other Settings -> Device Filter برید.
اگه تنظیم devcie f_il_t_er روی هر دو حالت باشه یعنی both ARM and x86 پس حجم بالاتر می ره ولی در عوض روی هر دو پردازنده ی گوشی های هم x86 و هم ARM بازی نصب خواهد شد و بنابراین صرفا بالابودن حجم دلیل بر بد بودن نیست چون بعضی اوقات حتی لازمه برای اینکه مطمئن بشیم بازیمون روی اکثر گوشی ها اجرا میشه.
نکته بعدی:
بعد از build به apk ،در قسمت بالا و سمت راست پنجره ی console لاگ یا نوشته ها روی فلش کوچک پایین بزنید یک گزینه Editor Log رو می بینید.روش بزنید می گه چند درصد مربوط به کدوم بخش هست.
***Player size statistics***
Level 0 'Assets/Loader.unity' uses 459.0 KB compressed / 1.6 MB uncompressed.
Level 1 'Assets/Game.unity' uses 2.3 MB compressed / 7.8 MB uncompressed.
Total compressed size 2.8 MB. Total uncompressed size 9.4 MB.
Textures 3.9 mb 41.2%
Meshes 2.3 mb 23.9%
Animations 679.1 kb 7.0%
Sounds 0.0 kb 0.0%
Shaders 538.1 kb 5.6%
Other Assets 653.8 kb 6.8%
Levels 147.8 kb 1.5%
Scripts 453.3 kb 4.7%
Included DLLs 136.0 kb 1.4%
File headers 747.4 kb 7.8%
Complete size 9.4 mb 100.0%
Used Assets, sorted by uncompressed size:
277.1 kb 2.9% Assets/Player/Human.blend
264.1 kb 2.7% Assets/Player/Orc.blend
216.1 kb 2.2% Assets/Monsters/Foo.blend
213.0 kb 2.2% Assets/Dungeon/Dungeon.blend
170.8 kb 1.8% Assets/Monsters/FooSkin.png
...
Yes, Unity should make this critical information way more obvious!
Sometimes it's as simple as a texture you have forgotten to downscale, or a model that needs to have Compression turned on (model and/or animation). Sometimes you've inadvertently depended upon an expensive DLL (like XML). Sometimes a package you're using (like Detonator) has a lot of big unused Resources (unused mere assets don't matter).
Note on the above sizes: these are for a WebPlayer; unlike Android and iOS, web builds don't have to include the Player, since the user installs that separately (I suspect that's actually the entirety of your "problem").
http://answers.unity3d.com/questions/153065/file-size-is-far-too-big.html