Skip to main content
Version: 10 Jul 2024

Eye Gaze Overview

Unity developers can use the OpenXR Eye Gaze Interaction Profile to determine what a user is looking at, allowing a hands-free method of interacting with their application. To access the Eye Gaze data, the interaction profile needs to be enabled in your project's OpenXR Settings (Window > XR Plugin Manager > OpenXR Settings).

Before using Eye Tracking Input, you can utilize the User Calibration OpenXR feature to ensure the wearer has properly calibrated eye tracking and a well-fitted headset. This will ensure that the user's gaze is accurately detected.

If the User Calibration API indicates a �Bad Fit� or if the eyes are uncalibrated, we recommend notifying the user and prompting them to run the eye calibration. You can launch the eye calibration application using standard Android intents. Please refer to this article for more details.

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.

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