public static PreferencesWindow OpenWindow() { PreferencesWindow window = EditorWindow.GetWindow <PreferencesWindow>( true, PreferencesWindow.GetWindowTitle(), true ); PreferencesWindow.Instance = window; window.LoadDatabases(); window.Show(); return(window); }
public static PreferencesWindow OpenWindow() { PreferencesWindow window = EditorWindow.GetWindow <PreferencesWindow>( true, PreferencesWindow.GetWindowTitle(), true ); PreferencesWindow.Instance = window; window.minSize = new Vector2(WIN_MIN_WIDTH, WIN_MIN_HEIGHT); window.maxSize = new Vector2(WIN_MIN_WIDTH, WIN_MIN_HEIGHT); window.LoadDatabases(); window.Show(); return(window); }