This commit is contained in:
左右看
2022-11-04 10:06:11 +08:00
parent 63a3bbcc7a
commit d94ffc5503
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -25308,6 +25308,7 @@ MonoBehaviour:
CameraOverrideController: {fileID: 22100000, guid: 2074a3b49810aed419168eda443b9e1a, CameraOverrideController: {fileID: 22100000, guid: 2074a3b49810aed419168eda443b9e1a,
type: 2} type: 2}
CurrentCameraAnimator: {fileID: 0} CurrentCameraAnimator: {fileID: 0}
PreviewCamera: {fileID: 790387849}
--- !u!1 &1566898429 --- !u!1 &1566898429
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
+1
View File
@@ -979,6 +979,7 @@ public class UmaViewerBuilder : MonoBehaviour
} }
else else
{ {
CurrentUMAContainer.UmaAnimator.Rebind();
CurrentUMAContainer.OverrideController["clip_1"] = CurrentUMAContainer.OverrideController["clip_2"]; CurrentUMAContainer.OverrideController["clip_1"] = CurrentUMAContainer.OverrideController["clip_2"];
var lastTime = CurrentUMAContainer.UmaAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime; var lastTime = CurrentUMAContainer.UmaAnimator.GetCurrentAnimatorStateInfo(0).normalizedTime;
CurrentUMAContainer.OverrideController["clip_2"] = clip; CurrentUMAContainer.OverrideController["clip_2"] = clip;