Unity Addressable Asset System(五)

本文详细探讨了Unity Addressable Asset System中的Group与Assetbundle的关系,指出Group是资源组织的虚拟单位,可独立设置打包方式。接着介绍了Profile的重要性,它用于配置资源路径并提供了灵活的平台适应性。Profile的变量如BuildTarget、LocalBuildPath等在不同环境中的应用,建议至少设置两套Profile以适应测试和正式环境。最后讨论了Addressable打包颗粒度的控制,强调了这需要根据项目需求进行规划。
摘要由CSDN通过智能技术生成

上一篇 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
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值