Skip to content

Commit bb84de2

Browse files
committed
fix: Fixed compilation key not being removed on editor quit
1 parent 17849f8 commit bb84de2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Editor/GenericTypesAnalyzer/CompilationHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using UnityEditor.Compilation;
55
using UnityEngine;
66

7+
[InitializeOnLoad]
78
internal static class CompilationHelper
89
{
910
private const string CompiledOnceKey = "CompiledOnce";
@@ -24,6 +25,7 @@ public static void RecompileOnce()
2425

2526
PlayerPrefs.SetInt(CompiledOnceKey, 1);
2627
PlayerPrefs.Save();
28+
Debug.Log("requesting compilation");
2729
CompilationPipeline.RequestScriptCompilation();
2830
}
2931
}

0 commit comments

Comments
 (0)