From 1e410015e6ee303c869506da2820ecd04b1f7b0b Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Sat, 3 Oct 2020 13:38:03 +0200 Subject: [PATCH] Moved gaze tracking in `OpenSeeVRMDriver` to LateUpdate. --- Examples/OpenSeeVRMDriver.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Examples/OpenSeeVRMDriver.cs b/Examples/OpenSeeVRMDriver.cs index 13a6d29..ce0064c 100644 --- a/Examples/OpenSeeVRMDriver.cs +++ b/Examples/OpenSeeVRMDriver.cs @@ -1423,8 +1423,6 @@ public class OpenSeeVRMDriver : MonoBehaviour { } FindFaceMesh(); UpdateExpression(); - if (gazeTracking && !only30Points) - UpdateGaze(); BlinkEyes(); ReadAudio(); bool doMouthTracking = true; @@ -1439,6 +1437,11 @@ public class OpenSeeVRMDriver : MonoBehaviour { if (vrmBlendShapeProxy != null && browClips != null) vrmBlendShapeProxy.Apply(); } + + void LateUpdate() { + if (gazeTracking && !only30Points) + UpdateGaze(); + } void FixedUpdate() { if (openSeeIKTarget.fixedUpdate) {