找回密码
 立即注册
查看: 321|回复: 0

Unity Addressable Asset Bundle

[复制链接]
发表于 2022-7-13 21:52 | 显示全部楼层 |阅读模式
1、Addressable 包和AssetBundle包有啥区别

    Addressable Asset Bundle可以自动加载相关依赖包,而AssetBundle是需要编程实现的;Addressable Asset Bundle加载到内存中的bundle有引用计数,而AssetBundle加载到内存中的bundle需要自己进行管理Addressable Asset Bundle加载地址灵活;
2、安装Addressables包


打开Unity Editor,通过PackageManager安装Addressable包(如有加密需求,请安装Addressables.CN),Packages选择Unity Registry后搜索Addressables。


image.png


image.png

3、打包流程

3.1 安装完毕后Window > Asset Management > Addressables > Groups


image.png

3.2初始化配置


image.png

3.3使用Addressable


    检查资产检查器中 的可寻址框:


    image.png


    将资产拖到Addressables Groups窗口上的组中:


    image.png



    将资产放入标记为可寻址的项目文件夹中:


    image.png


将资产设置为可寻址后,可寻址系统会将其添加到默认组中(除非您将其放置在特定组中)。当您进行内容构建时,Addressables根据您的组设置将组中的资产打包到AssetBundles中。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-5-19 00:49 , Processed in 0.093539 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表