Optimized the speed of simulate build.

优化了编辑器下模拟构建的速度。
This commit is contained in:
hevinci
2022-05-05 21:12:44 +08:00
parent c3c18cd555
commit c196cd84d3
17 changed files with 85 additions and 72 deletions

View File

@@ -235,6 +235,10 @@ namespace YooAsset.Editor
}
private List<string> GetAllDependencies(string mainAssetPath)
{
// 注意:模拟构建模式下不需要收集依赖资源
if(AssetBundleCollectorSetting.BuildMode == EBuildMode.SimulateBuild)
return new List<string>();
List<string> result = new List<string>();
string[] depends = AssetDatabase.GetDependencies(mainAssetPath, true);
foreach (string assetPath in depends)