public static void CreateWindow(ModalParent parent, LipSyncClipSetup setup, int markerType)
        {
            DefaultMarkerSettingsWindow window = Create(parent, setup, 0);

            window.markerType = markerType;
            if (markerType == 0)
            {
                window.intensity            = setup.defaultPhonemeIntensity;
                window.modifierOn           = setup.defaultUseRandomness;
                window.intensityModifier    = setup.defaultIntensityRandomness;
                window.blendableModifier    = setup.defaultBlendableRandomness;
                window.boneRotationModifier = setup.defaultBonePositionRandomness;
                window.bonePositionModifier = setup.defaultBoneRotationRandomness;
            }
            else if (markerType == 1)
            {
                window.intensity             = setup.defaultEmotionIntensity;
                window.modifierOn            = setup.defaultContinuousVariation;
                window.maxVariationFrequency = setup.defaultVariationFrequency;
                window.intensityModifier     = setup.defaultIntensityVariation;
                window.blendableModifier     = setup.defaultBlendableVariation;
                window.boneRotationModifier  = setup.defaultBonePositionVariation;
                window.bonePositionModifier  = setup.defaultBoneRotationVariation;
            }

            window.modifierBool = new AnimBool(window.modifierOn, window.Repaint);
        }
        private static DefaultMarkerSettingsWindow Create(ModalParent parent, LipSyncClipSetup setup, int markerType)
        {
            DefaultMarkerSettingsWindow window = CreateInstance <DefaultMarkerSettingsWindow>();

            window.position     = new Rect(parent.center.x - 250, parent.center.y - 100, 500, 200);
            window.minSize      = new Vector2(500, 200);
            window.titleContent = new GUIContent("Default Marker Settings");

            window.setup      = setup;
            window.markerType = markerType;
            window.Show(parent);
            return(window);
        }