Skip to content

Commit 0320993

Browse files
fix(core): reset error baseline after filtering YooAsset catalog errors
BuildManager was incorrectly detecting false positive errors during step 4/4 (GeneratePolymorphicCodes) because the error count baseline was not reset after step 3/4 filtered out known YooAsset catalog errors. The YooAsset PreprocessBuildCatalog throws "Object reference not set" when CatalogTools.CreateCatalogFile is called with null decryption services during HybridCLR's GenerateAll step. This error is correctly filtered by CheckForErrorsExcluding, but subsequent steps still saw the elevated error count. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent 61f5c59 commit 0320993

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • UnityProject/Packages/com.jasonxudeveloper.jengine.core/Editor/CustomEditor

UnityProject/Packages/com.jasonxudeveloper.jengine.core/Editor/CustomEditor/BuildManager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,10 @@ private void ExecuteCurrentStep()
237237
CheckForErrorsExcluding("Step 3/4 failed - HybridCLR generation failed",
238238
"Create package main catalog file failed");
239239

240+
// Reset error baseline after filtering excluded errors
241+
// so subsequent steps don't see the ignored YooAsset catalog errors
242+
_errorCountAtStart = GetUnityErrorCount();
243+
240244
_currentStep = BuildStep.GeneratePolymorphicCodes;
241245
break;
242246

0 commit comments

Comments
 (0)