Skip to main content
Version: 12 Dec 2024

Eye Tracking Tracked Pose Driver

note

If your Application collects, stores, transfers or otherwise uses data off the Magic Leap 2 device that is received via this API, then you must comply with the Magic Leap 2 Eye Tracking Data Transparency Policy.

You can also use Unity's TrackedPoseDriver component, provided it is configured with the appropriate input action bindings.

  1. Add the TrackedPoseDriver Component to your GameObject.
  2. Under the Position Input section, click the + icon to add a new binding.
  3. Add the path to the eye binding you want to use (see the "Binding Paths" section below for options).
  4. If you wish for the object to track with the Eye Gaze rotation, repeat steps 2 and 3 under the component's Rotation Input section.

Binding Paths

Position: <EyeGaze>/pose/position

Rotation: <EyeGaze>/pose/rotation

caution

This features requires the EYE_TRACKING permission to be requested at runtime and enabled in your project's Manifest Settings (Edit > Project Settings > Magic Leap > Manifest Settings).

caution

This feature requires the Eye Gaze Interaction Profile OpenXR Interaction Profile to be enabled in your project's OpenXR Settings (Window > XR Plugin Manager > OpenXR Settings).