使用 Asset Bundle 为 iOS 平台构建 Unity 游戏

Building Unity game for iOS platform with Asset Bundle

我遇到的问题是,当我尝试为 iOS 平台构建 Unity 游戏时,我用它构建了资产,但随后我需要尽可能地减小文件大小。

如何从整个构建中拆分资产? 在 Android 中,有一个选项可以在播放器设置 unity 中使用拆分二进制应用程序。但是在iOS里面没有。

我尝试为 iOS 构建资产包,它生成了一个要上传到服务器的资产包。
然后,如果我在 Unity 中构建我的游戏,它包含资产,文件大小将与不使用 Asset Bundle 的情况相同。

那么使用 Asset Bundle 有什么意义呢?

Unity 包括 "Build" window 中列出的所有场景以及构建中此场景中引用的所有资产。

如果您想排除一些资产并改为从资产包中加载它们,请从 "Build" window 和 load them from the asset bundle instead.

中删除场景