Skip to content

Instantly share code, notes, and snippets.

@FreyaHolmer
Created May 2, 2019 04:38
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FreyaHolmer/60d76ed842a6c4f8f1ed424d6866575b to your computer and use it in GitHub Desktop.
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
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