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();
    }
    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();
    }