Eye Tracking Tracked Pose Driver
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.
- Add the
TrackedPoseDriver
Component to your GameObject. - Under the Position Input section, click the + icon to add a new binding.
- Add the path to the eye binding you want to use (see the "Binding Paths" section below for options).
- 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
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).
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).