Unity AssetBundle 之 (进阶)简单的实现 AssetBundle 框架.rar

时间:2020-08-18 10:27:25
【文件属性】:
文件名称:Unity AssetBundle 之 (进阶)简单的实现 AssetBundle 框架.rar
文件大小:15.42MB
文件格式:RAR
更新时间:2020-08-18 10:27:25
Unity Asset Bundle 框架 下载加载AB资源 Unity AssetBundle 之 (进阶)简单的实现 AssetBundle 框架,加载AB包资源,自动加载依赖资源(无需手动加载),自动打AB标签,自动打包AssetBundle的框架方法 框架使用流程: 1、编辑器 AutoSetAssetBundleLabel 使用这个类自动标记AB包标签 2、编辑器 BuildAssetBundle 自动打包标记的AB包资源为 AssetBundle 3、StartCoroutine(AssetBundleManager.GetInstance().LoadAssetBundlePack(_SceneName, _AssetBundleName, LoadAllABComplete)); 启动开始 WWW 下载指定的AssetBundle包,等待相关的所有依赖包下载完成 4、AssetBundle 下载完成,即可 AssetBundleManager.GetInstance().LoadAsset(_SceneName, _AssetBundleName, _AssetName, false); 加载对应包中的资源了,最后一个参数为是否缓存资源的标志 AssetLoader AssetBundle 包资源加载类: (1)加载Assetbundle中的指定的资源,可以设置是否缓存该资源 (2)卸载Assetbundle中的指定的资源 (3)卸载内存镜像资源、释放当前 AssetBundle 内存镜像资源,且释放内存资源 (4)查询Assetbundle包中所有资源名称
【文件预览】:
AssetBundleFramework.unitypackage
ReadMe.txt

网友评论

  • 框架写的非常详细,每一个方法都有具体的注释 给大佬点赞!!!!!!