Eye Tracking Overview
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.
Eye tracking uses cameras to track the movement of the user�s eyes to calculate where a user is looking, track whether they are blinking, and check if their eyes are in a comfortable configuration.
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 category includes the following articles:
- API Overview - a summary of terminology and how to get started using the Magic Leap 2 Controller Input API.
- Magic Leap Specific Eye Tracking Data - demonstrates how to get and read the Magic Leap 2 specific eye tracking data using the
EyeTrackingState
struct, such as the confidence of the fixation point. - Generic Eye Tracking Data - includes information and an example on how to read eye tracking input using the generic
UnityEngine.InputSystem.XR.Eyes
struct, such as fixation point. - Tracked Pose Driver - A guide on setting up Unity's Tracked Pose Driver to mirror the eye input position and rotation.
- Migration Guide - Includes details on upgrading your Magic Leap 1 controller API to the Magic Leap 2.
📄️ API Overview
Magic Leap's Eye Tracking data is retrieved in two ways.
📄️ Magic Leap Eye Tracking Data
To obtain Magic Leap device specific features such as checking the eye tracking FixationConfidence status or if the user is blinking use Magic Leap's InputSubsystem.Extensions
📄️ Generic Eye Tracking Data
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.
📄️ 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.
📄️ Migrating from ML1
Upgrade to Magic Leap's new Eye Tracking APIs