debug overlay mode is hidden by default
This commit is contained in:
		| @@ -55,9 +55,9 @@ namespace RebootKitEditor.Build { | ||||
|         } | ||||
|  | ||||
|         static bool TryParseVersion(string version, out int major, out int minor, out int patch) { | ||||
|             major = 0; | ||||
|             minor = 0; | ||||
|             patch = 0; | ||||
|             major = -1; | ||||
|             minor = -1; | ||||
|             patch = -1; | ||||
|  | ||||
|             string[] parts = version.Split('.'); | ||||
|             if (parts.Length != 3) { | ||||
|   | ||||
| @@ -6,18 +6,17 @@ using UnityEngine.InputSystem; | ||||
|  | ||||
| namespace RebootKit.Engine.Services.Development { | ||||
|     static class DebugConfig { | ||||
|         [ConfigVar("debug.overlay", 1, "Controls overlay visibility. 0 - hidden, 1 - visible")] public static ConfigVar s_OverlayMode; | ||||
|         [ConfigVar("debug.overlay", 0, "Controls overlay visibility. 0 - hidden, 1 - visible")] public static ConfigVar s_OverlayMode; | ||||
|     } | ||||
|  | ||||
|     public class DevToolsService : ServiceMonoBehaviour { | ||||
|         [SerializeField] DebugOverlayView m_DebugOverlayView; | ||||
|  | ||||
|  | ||||
|         IDisposable m_CVarChangedListener; | ||||
|  | ||||
|         void Start() { | ||||
|             ConfigVar.StateChanged += OnCVarChanged; | ||||
|             // OnOverlayModeChanged(m_OverlayMode.IndexValue); | ||||
|             OnCVarChanged(DebugConfig.s_OverlayMode); | ||||
|         } | ||||
|  | ||||
|         void OnDisable() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user