Merge pull request #153 from michael811125/main

判断分组不激活时,则不进行 CheckConfigError 的检测
pull/169/head
何冠峰 2023-09-01 14:07:11 +08:00 committed by GitHub
commit 5539d81c93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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();