Skip to main content
Version: 14 May 2024

Eye Tracking Overview

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.

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.

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).

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.