static void OpenWindow(string filePath) { if (window != null) { window.Close(); } window = (ConsoleEditorWindow)GetWindow( typeof(ConsoleEditorWindow), true, "Console Log View", true ); window.minSize = new Vector2(1024, 768); window.currentFilePath = filePath; window.Init(); window.Show(); }
static void OpenWindow(string filePath) { if (window != null) window.Close(); window = (ConsoleEditorWindow)GetWindow( typeof(ConsoleEditorWindow), true, "Console Log View", true ); window.minSize = new Vector2(1024, 768); window.currentFilePath = filePath; window.Init(); window.Show(); }