diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs index 0ecad2ca..796694ce 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollector.cs @@ -259,10 +259,13 @@ namespace YooAsset.Editor } private List GetAssetTags(AssetBundleCollectorGroup group) { - List tags = EditorTools.StringToStringList(group.AssetTags, ';'); - List temper = EditorTools.StringToStringList(AssetTags, ';'); - tags.AddRange(temper); - return tags; + List result = EditorTools.StringToStringList(AssetTags, ';'); + if (CollectorType == ECollectorType.MainAssetCollector) + { + List temps = EditorTools.StringToStringList(group.AssetTags, ';'); + result.AddRange(temps); + } + return result; } private List GetAllDependencies(CollectCommand command, string mainAssetPath) {