예제 #1
0
    public static void Init(UPAImage img)
    {
        // Get existing open window or if none, make new one
        window = (UPAExportWindow)EditorWindow.GetWindow (typeof (UPAExportWindow));
        window.title = "Export Image";

        window.position = new Rect(Screen.width/2 + 260/2f,Screen.height/2 - 80, 260, 170);
        window.ShowPopup();

        window.exportImg = img;
    }
예제 #2
0
    public static void Init(UPAImage img)
    {
        // Get existing open window or if none, make new one
        window       = (UPAExportWindow)EditorWindow.GetWindow(typeof(UPAExportWindow));
        window.title = "Export Image";

        window.position = new Rect(Screen.width / 2 + 260 / 2f, Screen.height / 2 - 80, 260, 170);
        window.ShowPopup();

        window.exportImg = img;
    }