【问题标题】:Unity - iOS/Android build size too high/large for no apparent reasonUnity - iOS/Android 构建大小太高/没有明显原因
【发布时间】:2019-03-31 00:50:17
【问题描述】:

我有一个非常小的游戏,只有 2 个场景和最少数量的资产。3 个插件已被使用,例如 Unity IAP、Googleplaygames 插件和 google admob 插件。这就是全部。然而构建尺寸太高了。超过 600MB(存档超过 700MB)!!

下面我已经在 iOS 和 android 的编辑器日志中发布了构建报告。正如您所看到的,没有特定的类别占用太多空间,但是对于 andorid 和 ios 来说,完整的大小都很大。 iOS 的大小也超过了 android。

有谁知道是什么导致了这个额外的尺寸,因为它甚至没有显示在任何其他类别中?

iOS -

Build Report
Uncompressed usage by category:
Textures      17.0 mb    2.7% 
Meshes        0.0 kb     0.0% 
Animations    4.9 kb     0.0% 
Sounds        547.9 kb   0.1% 
Shaders       15.6 kb    0.0% 
Other Assets  237.0 kb   0.0% 
Levels        63.2 kb    0.0% 
Scripts       399.6 kb   0.1% 
Included DLLs 0.0 kb     0.0% 
File headers  28.0 kb    0.0% 
Complete size 632.2 mb   100.0% 

安卓-

Build Report
Uncompressed usage by category:
Textures      16.3 mb    12.0% 
Meshes        0.0 kb     0.0% 
Animations    4.9 kb     0.0% 
Sounds        548.0 kb   0.4% 
Shaders       11.8 kb    0.0% 
Other Assets  237.0 kb   0.2% 
Levels        63.3 kb    0.0% 
Scripts       1.5 mb     1.1% 
Included DLLs 5.1 mb     3.8% 
File headers  204.5 kb   0.1% 
Complete size 136.1 mb   100.0%

Unity 版本 - Unity 2018.1.0f2 个人版(64 位)

我在 ios 中尝试了“快速但无异常”的脚本调用优化,但没有区别。这个游戏几乎不应该占用 70-100MB。我能理解几 MB 的差异,但这太高了! 我将无法发布这么大的应用程序。请帮忙

【问题讨论】:

    标签: android ios unity3d build size


    【解决方案1】:

    在完成发布构建后,我意识到上述值并不能确定最终大小。 如您所见-

    https://itunes.apple.com/app/id1431764625

    https://play.google.com/store/apps/details?id=com.ResurgeLabs.ChasingStars

    我在 android 和 ios 上的最终游戏都小于 100 mb。因此,一切都令人满意且符合预期。因此这个问题是无效的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-08
      • 2020-09-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多