private static void CompileErrorsCheck() { if (EditorApplication.isCompiling) return; EditorApplication.update -= CompileErrorsCheck; reloadingAssemblies = false; //EditorUtility.DisplayDialog("Script Inspector", "Compile errors!", "OK"); FGTextEditor.RepaintAllInstances(); FGConsole.repaintOnUpdateCounter = 1; if (SISettings.autoFocusConsole != 0) { FGConsole.ShowConsole(); var siConsole = FGConsole.FindInstance(); if (siConsole) siConsole.SendEvent(Event.KeyboardEvent("%end")); } }
public static void OpenIfConsoleIsOpen() { EditorWindow console = FindInstance(); if (console != null) { return; } UnityEngine.Object[] objArray = Resources.FindObjectsOfTypeAll(consoleWindowType); console = (objArray.Length <= 0) ? null : (objArray[0] as EditorWindow); if (console != null) { EditorWindow wnd = EditorWindow.focusedWindow; FGConsole.ShowConsole(); if (wnd != null) { wnd.Focus(); } } }