update AssetBundleCollector

pull/466/head^2
何冠峰 2025-02-10 16:19:07 +08:00
parent 7cfe4cb2c9
commit 7dfbac4a24
2 changed files with 5 additions and 6 deletions

View File

@ -98,9 +98,9 @@ namespace YooAsset.Editor
}
/// <summary>
/// 开始收集工作
/// 获取收集的资源列表
/// </summary>
public CollectResult BeginCollect(CollectCommand command)
public List<CollectAssetInfo> GetCollectAssets(CollectCommand command)
{
Dictionary<string, CollectAssetInfo> result = new Dictionary<string, CollectAssetInfo>(10000);
@ -139,9 +139,7 @@ namespace YooAsset.Editor
}
// 返回结果
var collectAssets = result.Values.ToList();
var collectResult = new CollectResult(command, collectAssets);
return collectResult;
return result.Values.ToList();
}
/// <summary>

View File

@ -116,7 +116,8 @@ namespace YooAsset.Editor
command.AutoCollectShaders = package.AutoCollectShaders;
// 开始收集工作
CollectResult collectResult = package.BeginCollect(command);
var collectAssets = package.GetCollectAssets(command);
var collectResult = new CollectResult(command, collectAssets);
return collectResult;
}