示例#1
0
        public static PreferencesWindow OpenWindow()
        {
            PreferencesWindow window = EditorWindow.GetWindow <PreferencesWindow>(
                true,
                PreferencesWindow.GetWindowTitle(),
                true
                );

            PreferencesWindow.Instance = window;
            window.LoadDatabases();
            window.Show();
            return(window);
        }
示例#2
0
        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);
        }