Add preset emotion

This commit is contained in:
左右看
2022-11-01 02:21:30 +08:00
parent a064cc6ffb
commit 5f5f96bf4e
7 changed files with 343 additions and 16 deletions
+31 -1
View File
@@ -1,6 +1,8 @@
using System.Collections;
using RootMotion.Dynamics;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Gallop;
public class UmaDatabaseEntry
{
@@ -30,11 +32,39 @@ public class UmaLyricsData
public string text;
}
public class EmotionKey
{
public FacialMorph morph;
public float weight;
}
[System.Serializable]
public class FaceTypeData
{
public string label, eyebrow_l, eyebrow_r, eye_l, eye_r, mouth, inverce_face_type;
public int mouth_shape_type, set_face_group;
public FaceDrivenKeyTarget target;
public List<EmotionKey> mouthTarget;
public List<EmotionKey> eyeLTarget;
public List<EmotionKey> eyeRTarget;
public List<EmotionKey> eyebrowLTarget;
public List<EmotionKey> eyebrowRTarget;
private float _weight;
public float Weight
{
get
{
return _weight;
}
set
{
_weight = value;
target.needAllUpdate = true;
}
}
}
public enum UmaFileType