From cac412b2afe923162370b0c0d18a0b1751e782b8 Mon Sep 17 00:00:00 2001 From: Emiliana <38952746+emilianavt@users.noreply.github.com> Date: Mon, 6 Jul 2020 13:17:26 +0200 Subject: [PATCH] Added an option to `OpenSeeVRMDriver` to turn off gaze tracking --- Examples/OpenSeeVRMDriver.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Examples/OpenSeeVRMDriver.cs b/Examples/OpenSeeVRMDriver.cs index eb6f7a0..2b5eaac 100644 --- a/Examples/OpenSeeVRMDriver.cs +++ b/Examples/OpenSeeVRMDriver.cs @@ -54,6 +54,8 @@ public class OpenSeeVRMDriver : MonoBehaviour { [Tooltip("This is the sensitivity of the eyebrow tracking, with 0 meaning no eyebrow movement.")] [Range(0, 2)] public float eyebrowSensitivity = 1.0f; + [Tooltip("If enabled, the eye will be animated according to camera based gaze tracking.")] + public bool trackGaze = true; [Tooltip("This is the gaze smoothing factor, with 0 being no smoothing and 1 being a fixed gaze.")] [Range(0, 1)] public float gazeSmoothing = 0.6f; @@ -1382,7 +1384,8 @@ public class OpenSeeVRMDriver : MonoBehaviour { } FindFaceMesh(); UpdateExpression(); - UpdateGaze(); + if (trackGaze) + UpdateGaze(); BlinkEyes(); ReadAudio(); if (lipSync) {