ikeyeblinker - eisclimber/ExPresS-XR GitHub Wiki
Class in ExPresSXR.Experimentation.EyeTracking
Inherits from UnityEngine.MonoBehaviour
Animates the blend shapes of a SkinnedMeshRenderer to make the eyes blink. One can either use the openness values from eye-tracking or random intervals.
The SkinnedMeshRenderer must have the proper blendshapes set up for this to work.
To get the blendshapes' index, find it in the editor. Right-click and Copy the 'Property Path'. Paste it somewhere and use the number in the short string as index.
public class IKEyeBlinker : MonoBehaviour| Name | Description |
|---|---|
| BlinkBehaviorType | Different types of eye blinking behaviors. |
EyeTracking requires a headset that supports and exposes the value via InputActions. |
| Name | Description |
|---|---|
| MAX_BLEND_VALUE | Defines the maximum value of a bend shape key. |
| Name | Description |
|---|---|
| BlinkBehavior | Determines the provider used for triggering blinking. |