예제 #1
0
    static void ShowWindow()
    {
        if (SingleWindow == null)
        {
            SingleWindow          = (CFXEasyEditor)ScriptableObject.CreateInstance(typeof(CFXEasyEditor));
            SingleWindow.title    = "CartoonFX Easy Editor";
            SingleWindow.minSize  = new Vector2(300, 420);
            SingleWindow.maxSize  = new Vector2(300, 420);
            SingleWindow.position = new Rect(200, 200, 300, 420);
        }

        SingleWindow.ShowUtility();
        SingleWindow.Focus();
    }