We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5fe3f1 commit 7cba7a0Copy full SHA for 7cba7a0
PostProcessing/Runtime/PostProcessManager.cs
@@ -59,7 +59,11 @@ public static PostProcessManager instance
59
[UnityEditor.Callbacks.DidReloadScripts]
60
static void OnEditorReload()
61
{
62
- instance.ReloadBaseTypes();
+ // ctor() will also call ReloadBaseTypes. This "dirty" test will avoid 2 calls of ReloadBaseTypes
63
+ if (s_Instance == null)
64
+ s_Instance = new PostProcessManager();
65
+ else
66
+ s_Instance.ReloadBaseTypes();
67
}
68
#endif
69
0 commit comments