public static void RunTroubleshooter() { TroubleshooterWindow windowWithRect = EditorWindow.GetWindowWithRect <TroubleshooterWindow>(new Rect(100f, 100f, 990f, 680f), true, "Troubleshooter"); if (windowWithRect != null) { windowWithRect.ShowUtility(); } }
public static void RunTroubleshooter() { TroubleshooterWindow window = EditorWindow.GetWindowWithRect <TroubleshooterWindow>(new Rect(100, 100, 990, 680), true, "Troubleshooter") as TroubleshooterWindow; if (window != null) { window.ShowUtility(); } }