From 6d37bca2a94c9e2a886ee704f311dfdd278ce922 Mon Sep 17 00:00:00 2001 From: hevinci Date: Fri, 25 Aug 2023 17:37:34 +0800 Subject: [PATCH] update asset bundle builder --- .../BuildTasks/TaskCreateManifest.cs | 32 +------------------ 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateManifest.cs b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateManifest.cs index 0ce5fed..327693f 100644 --- a/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateManifest.cs +++ b/Assets/YooAsset/Editor/AssetBundleBuilder/BuildTasks/TaskCreateManifest.cs @@ -249,7 +249,7 @@ namespace YooAsset.Editor private void CacheBundleIDs(PackageManifest manifest) { - UnityEngine.Debug.Assert(manifest.BundleList.Count == 0); + UnityEngine.Debug.Assert(manifest.BundleList.Count != 0, "Manifest bundle list is empty !"); for (int index = 0; index < manifest.BundleList.Count; index++) { string bundleName = manifest.BundleList[index].BundleName; @@ -262,21 +262,6 @@ namespace YooAsset.Editor int progressValue; int totalCount = manifest.BundleList.Count; - // 缓存资源包ID - _cachedBundleID.Clear(); - progressValue = 0; - foreach (var packageBundle in manifest.BundleList) - { - int bundleID = GetCachedBundleID(packageBundle.BundleName); - _cachedBundleID.Add(packageBundle.BundleName, bundleID); - int pro = ++progressValue; - if (pro % 100 == 0) - { - EditorTools.DisplayProgressBar("缓存资源包索引", pro, totalCount); - } - } - EditorTools.ClearProgressBar(); - // 缓存资源包依赖 _cachedBundleDepends.Clear(); progressValue = 0; @@ -318,21 +303,6 @@ namespace YooAsset.Editor int progressValue; int totalCount = manifest.BundleList.Count; - // 缓存资源包ID - _cachedBundleID.Clear(); - progressValue = 0; - foreach (var packageBundle in manifest.BundleList) - { - int bundleID = GetCachedBundleID(packageBundle.BundleName); - _cachedBundleID.Add(packageBundle.BundleName, bundleID); - int pro = ++progressValue; - if (pro % 100 == 0) - { - EditorTools.DisplayProgressBar("缓存资源包索引", pro, totalCount); - } - } - EditorTools.ClearProgressBar(); - // 缓存资源包依赖 _cachedBundleDepends.Clear(); progressValue = 0;