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;