This commit is contained in:
VDH
2025-12-23 14:19:04 +07:00
parent dd476f0512
commit 76e66cafdb
14 changed files with 252 additions and 858 deletions
+24
View File
@@ -0,0 +1,24 @@
using UnityEditor;
using UnityEngine;
namespace BrewMonster
{
public static class ComponentDebugMenu
{
[MenuItem("CONTEXT/MonoBehaviour/Enable Debug")]
static void EnableDebug(MenuCommand command)
{
var comp = command.context as MonoBehaviour;
DebugRegistry.Enable(comp);
Debug.Log($"Debug enabled: {comp.name} ({comp.GetType().Name})");
}
[MenuItem("CONTEXT/MonoBehaviour/Disable Debug")]
static void DisableDebug(MenuCommand command)
{
var comp = command.context as MonoBehaviour;
DebugRegistry.Disable(comp);
Debug.Log($"Debug disabled: {comp.name} ({comp.GetType().Name})");
}
}
}