Created
May 2, 2019 04:38
-
-
Save FreyaHolmer/60d76ed842a6c4f8f1ed424d6866575b to your computer and use it in GitHub Desktop.
Unity script to open the IMGUI debugger. Useful for editor UI debugging! Make sure you put it in an Editor/ folder in your project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using System; | |
public static class IMGUIDebugger { | |
static Type type = Type.GetType( "UnityEditor.GUIViewDebuggerWindow,UnityEditor" ); | |
[MenuItem( "Window/IMGUI Debugger" )] | |
public static void Open() => EditorWindow.GetWindow( type ).Show(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment