From 267ec77c374c35365ed4e31d94e202758e11c643 Mon Sep 17 00:00:00 2001 From: hevinci Date: Thu, 21 Dec 2023 17:33:08 +0800 Subject: [PATCH] fix #198 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 禁用的分组不再检测合法性 --- .../Editor/AssetBundleCollector/AssetBundleCollectorGroup.cs | 5 +++++ 1 file changed, 5 insertions(+) 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();