post processing
[WindSway-HDRP.git] / Library / PackageCache / com.unity.render-pipelines.high-definition@4.10.0-preview / Runtime / Core / Debugging / DebugUpdater.cs
blob11126c9ca651998a3d071a0dd976a4d6edb4b353
1 namespace UnityEngine.Experimental.Rendering
3 public class DebugUpdater : MonoBehaviour
5 [RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
6 static void RuntimeInit()
8 if (FindObjectOfType<DebugUpdater>() != null)
9 return;
11 var go = new GameObject { name = "[Debug Updater]" };
12 go.AddComponent<DebugUpdater>();
13 DontDestroyOnLoad(go);
16 void Update()
18 DebugManager.instance.UpdateActions();
20 if (DebugManager.instance.GetAction(DebugAction.EnableDebugMenu) != 0.0f)
21 DebugManager.instance.displayRuntimeUI = !DebugManager.instance.displayRuntimeUI;