示例#1
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        LevelDesigner window = (LevelDesigner)EditorWindow.GetWindow(typeof(LevelDesigner));

        window.Show();
    }
    static void OpenWindow()
    {
        LevelDesigner window = (LevelDesigner)GetWindow(typeof(LevelDesigner));

        window.minSize = new Vector2(300, 300);
        window.Show();
    }