Develop
Develop
Select your platform

Gaze Targets for Meta Avatars SDK

Targeting Avatar Gaze

Meta Avatars can be directed to focus their gaze on specific targets.
To target an avatar’s gaze use the following process:
  1. Add the OvrAvatarGazeTarget component to a game object that can be targeted.
  2. Specify the Target Type.
Configure Avatars Gaze Target
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.

Sample Scenes

Gaze tracking

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/
Gaze Tracking example For details, go to Gaze Tracking on samples page.

Mirror

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/
Mirror Scene example For details, go to Mirror Scene on samples page.
Did you find this page helpful?