internal void DebugWindow(object userData) { EditorWindow window = userData as EditorWindow; if (window == null) { return; } UIElementsDebugger.OpenAndInspectWindow(window); }
private void DebugWindow(object userData) { EditorWindow window = userData as EditorWindow; if (window == null) { return; } if (CommandService.Exists(UIElementsDebugger.OpenWindowCommand)) { CommandService.Execute(UIElementsDebugger.OpenWindowCommand, CommandHint.Menu, window); } else { UIElementsDebugger.OpenAndInspectWindow(window); } }