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) {
|
static bool TryParseVersion(string version, out int major, out int minor, out int patch) {
|
||||||
major = 0;
|
major = -1;
|
||||||
minor = 0;
|
minor = -1;
|
||||||
patch = 0;
|
patch = -1;
|
||||||
|
|
||||||
string[] parts = version.Split('.');
|
string[] parts = version.Split('.');
|
||||||
if (parts.Length != 3) {
|
if (parts.Length != 3) {
|
||||||
|
|||||||
@@ -6,18 +6,17 @@ using UnityEngine.InputSystem;
|
|||||||
|
|
||||||
namespace RebootKit.Engine.Services.Development {
|
namespace RebootKit.Engine.Services.Development {
|
||||||
static class DebugConfig {
|
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 {
|
public class DevToolsService : ServiceMonoBehaviour {
|
||||||
[SerializeField] DebugOverlayView m_DebugOverlayView;
|
[SerializeField] DebugOverlayView m_DebugOverlayView;
|
||||||
|
|
||||||
|
|
||||||
IDisposable m_CVarChangedListener;
|
IDisposable m_CVarChangedListener;
|
||||||
|
|
||||||
void Start() {
|
void Start() {
|
||||||
ConfigVar.StateChanged += OnCVarChanged;
|
ConfigVar.StateChanged += OnCVarChanged;
|
||||||
// OnOverlayModeChanged(m_OverlayMode.IndexValue);
|
OnCVarChanged(DebugConfig.s_OverlayMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OnDisable() {
|
void OnDisable() {
|
||||||
|
|||||||
Reference in New Issue
Block a user