Unity iOS App尺寸重1.2GB(实际尺寸)(Android 100MB) [英] Unity iOS App Size weighs 1.2GB (real size) (Android 100MB)

查看:207
本文介绍了Unity iOS App尺寸重1.2GB(实际尺寸)(Android 100MB)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它是用团结2d制作的。将它导出到android它的重量为100MB。将它导出到iOS重量为1.2GB(ipa为104MB),但iTunes内部重量为1.2GB,这太多了。

I have an app, that is made with unity 2d. Exporting it to android it weighs 100MB. Exporting it to iOS weighs 1.2GB (ipa is 104MB), but inside iTunes weighs 1.2GB, which is too much.

我们试图减小纹理尺寸,但随后,图像在设备上变得非常像素化。

We tried to reduce the texture size, but then, images get very pixelated on the device.

关于如何解决此问题的任何想法?

Any ideas on how to fix this?

这是什么.ipa未压缩显示获取所有MB的内容:

Here is what the .ipa uncompressed shows what is getting all the MB:

sharedassets4.assets(只是那个文件,获得342 MB)

sharedassets4.assets (just that file, gets 342 MB)

推荐答案

iTunes显示安装大小,因此如果您解压缩您的ipa文件,您将获得1.2GB。 Android上的安装大小也可能那么大。你检查过了吗?

iTunes shows the installation size, so if you unzip your ipa file, you will get those 1.2GB. The install size on Android could also that big. Did you check that?

通常当你用真彩色或16位压缩纹理并且拉链压缩效果非常好时(即在具有大量像素的纹理上)会发生这种情况具有相同的颜色。

Usually this happens when you compressed your texture in True Color or 16 bits and the zip compression works really well i.e. on textures that have a lot of pixels with the same colors.

可能的解决方案

1)如果您的纹理没有不需要透明度,你可以切换到压缩纹理(iOS上的PVRTC和Android上的ETC)。但是如果要求透明度,你不应该切换到压缩,因为透明PVRTC看起来很丑陋而且ETC不支持alpha。

1) if your textures don’t require transparency, you could switch to compressed Textures (PVRTC on iOS and ETC on Android). But if the require transparency, you should not switch to compressed because transparent PVRTC can look very ugly and ETC does not support alpha.

2)我不知道是不是可以在你的项目中使用,但你可以尝试通过使用色调或切片来减少纹理量。

2) I don’t know if it is possible in your project, but you could try to reduce the amount of texture by using tint or slicing them.

UPDATE 1

我目前遇到类似的情况,事实证明。

I currently having a similar situation and as it turns out.

 -------------------------------------------- 
| Platform                Android    iOS     |
|--------------------------------------------|
| APK/IPA                 380MB      400 MB  |
| unzipped APK/IPA        1.19 GB    1.13 GB |
| install size on device  380MB      1.15 GB | 
 --------------------------------------------

区别在于 iOS在安装时完全解压缩IPA文件

Android在运行时直接从APK中读取,因此您可能会说,这不是真正安装的,但它绝对是另一种安装类型。

The difference is that iOS unzips the IPA file completely on installation and
Android contrary reads during runtime directly out of the APK, so you could argue, that is not really installed, but it is definitely another installation type.

这篇关于Unity iOS App尺寸重1.2GB(实际尺寸)(Android 100MB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆