Gaze Targets for Meta Avatars SDK
Meta Avatars can be directed to focus their gaze on specific targets.
To target an avatar’s gaze use the following process:
Add the OvrAvatarGazeTarget
component to a game object that can be targeted.
Specify the Target Type.
This allows Meta Avatars to focus their gaze on targets they are nearby. Avatars do not gaze constantly at any one target, but will shift their focus naturally between nearby targets and glancing straight ahead.
When using GPU skinning, ensure that any joints which will be gaze targets are in the Critical Joint Types list. See
Critical Joint Types for more information.
This scene demonstrates various gaze target scenarios. It also showcases how avatars’ eyes simulates natural behaviors like temporarily glancing away from their current gaze target.
- Location:
/Avatar2/Example/Scenes/GazeTrackingExample/
This scene places targets on the first-person Avatar’s hands and head so that users can observe the mirrored Avatar focusing on the gaze targets.
- Location:
/Avatar2/Example/Scenes/MirrorScene/