DebugUISystem
Create a runtime menu system with buttons and windows for debugging in one line of code.
Install / Use
/learn @the-mr-matt/DebugUISystemREADME
Debug UI System

Uses IMGUI to draw a menu system. Add actions and windows to this menu system with a little as one line of code.
Installation
Download the latest Unity package here: https://github.com/the-mr-matt/DebugUISystem/releases
<em>This is not included by default in case you use a different input system.</em>
Usage
See example folder for a demo.
- Add the DebugUISystem prefab into your scene.
- Call
DebugUISystem.RegisterActionorDebugUISystem.RegisterWindow.
To hide the menus, simple disable the DebugUISystem component.
Path
When registering an action or window, you need to pass in a path. Paths are of the following format:
Menu/Sub Menu/Sub Menu 2/Action or Menu/Sub Menu/Sub Menu 2/Window Name
You can add as many windows or actions to a menu or sub menu as you like.
<em>e.g.</em> Diagnostics/Stats/FPS will generate a menu button called Diagnostics, with a sub menu called Stats, with an FPS button.
Actions
Actions are a single button press. Use a lambda or a function as the action. This is called when the button is pressed.
private void Start()
{
string path = "File/Save";
DebugUISystem.RegisterAction(path: path, action: () => Debug.Log("Action Called"));
}
Windows
Windows can contain customizable content. Content is drawn using IMGUI -- you are free to draw whatever you want inside the window. GUILayout is recommended for ease of use.
<em>Windows are not resizable.</em>
private void Start()
{
string path = "File/Save";
DebugUISystem.RegisterWindow(path: path, defaultSize: new Vector2(250, 400), onDrawWindow: () =>
{
GUILayout.BeginHorizontal();
GUILayout.Button("Left");
GUILayout.Button("Right");
GUILayout.EndHorizontal();
});
}
Related Skills
node-connect
336.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
336.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.8kCommit, push, and open a PR
