예제 #1
0
    static void ShowWindow()
    {
        LevelEditorWindow window = (LevelEditorWindow)EditorWindow.GetWindow(typeof(LevelEditorWindow));

        window.titleContent = new GUIContent("Level Editor");
        window.Show();
    }
예제 #2
0
    static void OpenWindow()
    {
        LevelEditorWindow window = (LevelEditorWindow)GetWindow(typeof(LevelEditorWindow));

        window.minSize = new Vector2(600, 300);
        window.Show();
    }
예제 #3
0
    static void Init()
    {
        // Get existing open window or if none, make a new one:
        LevelEditorWindow window = (LevelEditorWindow)EditorWindow.GetWindow(typeof(LevelEditorWindow));

        window.Show();
    }
예제 #4
0
    static void Init()
    {
        //Cria uma nova Window caso não tenha uma aberta
        LevelEditorWindow window = (LevelEditorWindow)EditorWindow.GetWindow(typeof(LevelEditorWindow));

        window.titleContent.text = "Level Editor";
        window.minSize           = new Vector2(Constants.minWindowWidth, Constants.minWindowHeight);
        window.Show();
    }
예제 #5
0
    static void Init()
    {
        LevelEditorWindow window = (LevelEditorWindow)EditorWindow.GetWindow(typeof(LevelEditorWindow));

        window.Show();
    }