From e469b32d9457ba1622c55ff2c4cac5a52479a688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=86=A0=E5=B3=B0?= Date: Wed, 23 Apr 2025 18:42:26 +0800 Subject: [PATCH] refactor: The tag diffusion logic in the collector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 优化收集器tag传染扩散逻辑,避免Group里配置了Tag导致的无意义的警告信息。 --- .../AssetBundleCollector/AssetBundleCollector.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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) {