From 873c82483900c03c6e53c481b78163ec97de045b Mon Sep 17 00:00:00 2001 From: MichaelO Date: Fri, 1 Sep 2023 13:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E5=88=86=E7=BB=84=E4=B8=8D?= =?UTF-8?q?=E6=BF=80=E6=B4=BB=E6=97=B6=EF=BC=8C=E5=88=99=E4=B8=8D=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=20CheckConfigError=20=E7=9A=84=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs index 2818c77..92bd97b 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs @@ -43,7 +43,10 @@ namespace YooAsset.Editor { if (AssetBundleCollectorSettingData.HasActiveRuleName(ActiveRuleName) == false) throw new Exception($"Invalid {nameof(IActiveRule)} class type : {ActiveRuleName} in group : {GroupName}"); - + + // 当分组不是激活状态时,直接不进行检测 + if (ActiveRuleName == nameof(DisableGroup)) return; + foreach (var collector in Collectors) { collector.CheckConfigError();