CurrentUmaContainer is now of type UmaContainerCharacter

This commit is contained in:
Katboi01
2023-08-20 22:27:30 +02:00
parent 9bb4539095
commit 124e03fb9c
10 changed files with 588 additions and 594 deletions
@@ -139,7 +139,7 @@ public class UnityHumanoidVMDRecorder : MonoBehaviour
transformDictionary.Add(pair.Key.ToString(), pair.Value);
}
var animator = GetComponentInParent<UmaContainer>().UmaAnimator;
var animator = GetComponentInParent<UmaContainerCharacter>().UmaAnimator;
var state = animator.GetCurrentAnimatorStateInfo(0);
animator.Rebind();
@@ -814,7 +814,7 @@ public class UnityHumanoidVMDRecorder : MonoBehaviour
public MorphRecorder(Transform model)
{
var facialTarget = model.GetComponentInParent<UmaContainer>().FaceDrivenKeyTarget;
var facialTarget = model.GetComponentInParent<UmaContainerCharacter>().FaceDrivenKeyTarget;
FacialMorphList = new List<FacialMorph>();
FacialMorphList.AddRange(facialTarget.EyeBrowMorphs);
FacialMorphList.AddRange(facialTarget.EyeMorphs);