private void DrawEmotionsSettings() { EditorGUILayout.BeginVertical(EditorStyles.helpBox); EditorGUI.indentLevel++; foldOutEmotions = EditorGUILayout.Foldout(foldOutEmotions, new GUIContent("Emotions settings")); EditorGUI.indentLevel++; if (foldOutEmotions) { currentEmotionDisplay = (Emotion)EditorGUILayout.EnumPopup(new GUIContent("Emotion", "The emotion you want to edit."), currentEmotionDisplay); BSFacePose pose = poseDisplayer.Draw(lipSync.GetPoseFor(currentEmotionDisplay), lipSync); lipSync.SetEmotionPose(currentEmotionDisplay, pose); } EditorGUI.indentLevel -= 2; EditorGUILayout.EndVertical(); }
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); }