update asset bundle builder

This commit is contained in:
hevinci
2023-03-14 16:12:48 +08:00
parent c9b775d8ff
commit 254da59b7a
3 changed files with 70 additions and 49 deletions

View File

@@ -226,7 +226,7 @@ namespace YooAsset.Editor
if (command.BuildMode == EBuildMode.SimulateBuild)
collectAssetInfo.DependAssets = new List<string>();
else
collectAssetInfo.DependAssets = GetAllDependencies(assetPath, isRawFilePackRule);
collectAssetInfo.DependAssets = GetAllDependencies(assetPath);
return collectAssetInfo;
}
@@ -331,13 +331,13 @@ namespace YooAsset.Editor
tags.AddRange(temper);
return tags;
}
private List<string> GetAllDependencies(string mainAssetPath, bool isRawFilePackRule)
private List<string> GetAllDependencies(string mainAssetPath)
{
List<string> result = new List<string>();
string[] depends = AssetDatabase.GetDependencies(mainAssetPath, true);
List<string> result = new List<string>(depends.Length);
foreach (string assetPath in depends)
{
if (IsValidateAsset(assetPath, isRawFilePackRule))
if (IsValidateAsset(assetPath, false))
{
// 注意:排除主资源对象
if (assetPath != mainAssetPath)