Skip to content

Commit

Permalink
Removed condition for Unity 6 for the rest
Browse files Browse the repository at this point in the history
  • Loading branch information
ShutovKS authored and amakropoulos committed Nov 4, 2024
1 parent e684f18 commit 5dcfc2c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Editor/LLMBuildProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,12 @@ public void OnPostprocessBuild(BuildReport report)

public void BuildCompleted()
{
#if UNITY_6000
// Delay the reset operation to ensure Unity is no longer in the build process
EditorApplication.delayCall += () =>
{
Application.logMessageReceived -= OnBuildError;
LLMBuilder.Reset();
};
#else
Application.logMessageReceived -= OnBuildError;
LLMBuilder.Reset();
#endif
}
}
}

0 comments on commit 5dcfc2c

Please sign in to comment.