diff --git a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs index 152a4ab..2ba35e6 100644 --- a/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs +++ b/Assets/YooAsset/Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs @@ -44,6 +44,11 @@ namespace YooAsset.Editor if (AssetBundleCollectorSettingData.HasActiveRuleName(ActiveRuleName) == false) throw new Exception($"Invalid {nameof(IActiveRule)} class type : {ActiveRuleName} in group : {GroupName}"); + // 检测分组是否激活 + IActiveRule activeRule = AssetBundleCollectorSettingData.GetActiveRuleInstance(ActiveRuleName); + if (activeRule.IsActiveGroup() == false) + return; + foreach (var collector in Collectors) { collector.CheckConfigError();