1 namespace UnityEngine
.Experimental
.Rendering
3 public class DebugUpdater
: MonoBehaviour
5 [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType
.AfterSceneLoad
)]
6 static void RuntimeInit()
8 if (FindObjectOfType
<DebugUpdater
>() != null)
11 var go
= new GameObject { name = "[Debug Updater]" }
;
12 go
.AddComponent
<DebugUpdater
>();
13 DontDestroyOnLoad(go
);
18 DebugManager
.instance
.UpdateActions();
20 if (DebugManager
.instance
.GetAction(DebugAction
.EnableDebugMenu
) != 0.0f
)
21 DebugManager
.instance
.displayRuntimeUI
= !DebugManager
.instance
.displayRuntimeUI
;