mirror of https://github.com/tuyoogame/YooAsset
update asset bundle builder
parent
8471bb0f9a
commit
6d37bca2a9
|
@ -249,7 +249,7 @@ namespace YooAsset.Editor
|
||||||
|
|
||||||
private void CacheBundleIDs(PackageManifest manifest)
|
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++)
|
for (int index = 0; index < manifest.BundleList.Count; index++)
|
||||||
{
|
{
|
||||||
string bundleName = manifest.BundleList[index].BundleName;
|
string bundleName = manifest.BundleList[index].BundleName;
|
||||||
|
@ -262,21 +262,6 @@ namespace YooAsset.Editor
|
||||||
int progressValue;
|
int progressValue;
|
||||||
int totalCount = manifest.BundleList.Count;
|
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();
|
_cachedBundleDepends.Clear();
|
||||||
progressValue = 0;
|
progressValue = 0;
|
||||||
|
@ -318,21 +303,6 @@ namespace YooAsset.Editor
|
||||||
int progressValue;
|
int progressValue;
|
||||||
int totalCount = manifest.BundleList.Count;
|
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();
|
_cachedBundleDepends.Clear();
|
||||||
progressValue = 0;
|
progressValue = 0;
|
||||||
|
|
Loading…
Reference in New Issue