static void OpenPopup()
    {
        GameWindowMover window = (GameWindowMover)(EditorWindow.GetWindow(typeof(GameWindowMover)));
        //Set popup window properties
        Vector2 popupSize = new Vector2(300, 140);

        //When minSize and maxSize are the same, no OS border is applied to the window.
        window.minSize = popupSize;
        window.maxSize = popupSize;
        window.title   = "RiftMode";
        window.ShowPopup();
    }
Esempio n. 2
0
    static void OpenPopup()
    {
        GameWindowMover window = (GameWindowMover)(EditorWindow.GetWindow(typeof(GameWindowMover)));
        //Set popup window properties
        Vector2 popupSize = new Vector2(300, 140);

        //When minSize and maxSize are the same, no OS border is applied to the window.
        window.minSize = popupSize;
#if UNITY_EDITOR_OSX
        window.maxSize = popupSize + new Vector2(0, 1);         // make popup window draggable for OSX
#else
        window.maxSize = popupSize;
#endif
        window.title = "RiftMode";
        window.ShowPopup();
    }