public BSFacePose Draw(BSFacePose targetPose, BSLipSync lipSync)
        {
            if (targetPose == null)
            {
                targetPose = new BSFacePose()
                {
                    Blendshapes = new List <BSBlendshape>()
                };
            }
            createdPose  = targetPose;
            ownerLipSync = lipSync;
            DrawPosingInterface();

            DisplayPoseOnModel();

            return(targetPose);
        }
예제 #2
0
        public override void OnInspectorGUI()
        {
            lipSync = (BSLipSync)target;
            DrawGeneralSettings();

            if (lipSync.MeshRenderer == null)
            {
                EditorGUILayout.LabelField("You must select the MeshRenderer to configure the LipSync system.");
            }
            else
            {
                if (EditorApplication.isPlaying)
                {
                    DrawLivePreview();
                }
                DrawEmotionsSettings();
                DrawLipSyncPoseSettings();
            }
            EditorUtility.SetDirty(lipSync);
        }