{"repo":"mister91jiao/BundleMaster","free":true,"listed":false,"github":"https://github.com/mister91jiao/BundleMaster","clone":"git clone https://github.com/mister91jiao/BundleMaster.git","description":"Unity资源加载大师","language":"C#","stars":298,"topics":["assetbundle","unity","unity3d","game","unityassets"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"BundleMaster Unity资源加载大师(纯代码ET框架集成用) 网站地址: https://www.unitybundlemaster.com 视频教程 YouTube : https://www.youtube.com/watch?v=3P7yJu01j0I B站 : https://www.bilibili.com/video/BV19341177Ek QQ讨论群: 787652036 非ET框架集成版本: https://github.com/mister91jiao/BundleMaster IntegrateETTask 注意事项: WebGL 平台需要加上 BMWebGL 宏，部署使用 Local 模式运行(网页直接刷新就行所以不需要更新)，注意避免正在异步加载一个资源的时候有同步加载同一个资源。 Switch 平台需要加上 Nintendo Switch 宏，理论上可以进行热更但因为政策原因所以没有对更新功能进行适配，因此部署依然需要在 Local 模式 下运行，除此之外还要加上 NintendoSDKPlugin，不然会报错，政策原因不上传这部分内容，有需要switch开发需要可以找我联系 代码示例: //初始化流程 public async ETTask Init() { //定义要检查的资源包名 Dictionary updatePackageBundle = new Dictionary () { {\"MainAssets\", false}, }; //检查是否需要更新 UpdateBundleDataInfo updateBundleDataInfo = await AssetComponent.CheckAllBundlePackageUpdate(updatePackageBundle); if ( updateBundleDataInfo.NeedUpdate) { //增量更新更新 await AssetComponent.DownLoadUpdate( updateBundleDataInfo); } //初始化资源包 await AssetComponent.Initialize(\"MainAssets\"); } //加载资源代码示例 public async ETTask Example() { //同步加载资源 GameObject playerAsset1 = AssetComponent.Load (out LoadHandler handler, \"Assets/Bundles/Role/Player1.prefab\"); GameObject player1 = UnityEngine.Object.Instantiate(playerAsset1); //异步加载资源 GameObject playerAsset2 = await AssetComponent.LoadAsync (\"Assets/Bundles/Role/Player2.prefab\"); GameObject player2 = UnityEngine.Object.Instantiate(playerAsset2); //卸载资源 handler.UnLoad(); AssetComponent.UnLoadByPath(\"Assets/Bundles/Role/Player2.prefab\"); } //别忘了配置生命周期 void Update() { AssetComponent.Update(); } vo","default_branch":null,"files":null,"tree":[],"storefront":"/r/mister91jiao","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mister91jiao/BundleMaster/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}