上一篇 Unity Addressable Asset System(四)
一.Group和Assetbundle的关系
既然Addressable的底层依然是Assetbundle,而在Addressable下,各个资源都在Group里。那Group和Assetbundle是个什么关系呢?这也是我开始学习Addressable时的一个疑问。
根据官方文档,一个项目最好有多个Group。
It is a good practice to logically collect assets into multiple groups rather than put them all in one large group.
The key benefit of this method is to avoid conflicts in version control systems (VCS) when multiple contributors make edits to the same file.
Having one large asset group might result in the VCS's inability to cleanly merge these various changes.
而每个Group都可以单独设置打包方式。目前有以下三种:
- Pack Together
整个Group打成一个assetbundle - Pack Together By Label
Lable相同的打在一起 - Pack Separately
一个一个Entry单独打。什么是Entry?暂时没看到解释。不过tips关于这种方式有句解释。就是这种模式下E