コード例 #1
0
ファイル: AutoSyncWindow.cs プロジェクト: edsonlima2000/GIT
    public static void CreateWindow(ModalParent parent, LipSyncClipSetup setup, int mode)
    {
        AutoSyncWindow window = CreateInstance <AutoSyncWindow>();

        window.position     = new Rect(parent.center.x - 250, parent.center.y - 150, 500, 300);
        window.minSize      = new Vector2(500, 300);
        window.titleContent = new GUIContent("AutoSync");

        window.setup = setup;

        window.tab  = mode;
        window.clip = setup.clip;
        window.Show(parent);
    }
コード例 #2
0
    public static void CreateWindow(ModalParent parent, LipSyncClipSetup setup, int mode, params int[] modules)
    {
        AutoSyncWindow window = CreateInstance <AutoSyncWindow>();

        window.position     = new Rect(parent.center.x - 250, parent.center.y - 400, 500, 800);
        window.minSize      = new Vector2(400, 500);
        window.titleContent = new GUIContent("AutoSync");

        window.setup = setup;

        window.tab  = mode;
        window.clip = setup.Clip;

        window.OnEnable();
        for (int i = 0; i < modules.Length; i++)
        {
            window.AddModule(modules[i]);
        }

        window.Show(parent);
    }