update asset bundle builder

mlyDevMerge1.5.7
hevinci 2023-08-25 17:37:34 +08:00 committed by QiJing
parent fdae770a34
commit 7264a75ca5
1 changed files with 1 additions and 31 deletions

View File

@ -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;