Skip to main content
Version: 12 Dec 2024

Eye Tracking

Support for common OpenXR features is provided by Epic's own OpenXR plugins, which are included in Unreal Engine 5.

Support for eye tracking is provided by Epic's OpenXREyeTracker plugin.

Eye Tracking

When the OpenXREyeTracker plugin is enabled, you can get eye tracking data in your Unreal application using the Eye Tracking blueprint library.

You will need to request the com.magicleap.permission.EYE_TRACKING permission to get eye tracking data in your project. See the Permissions guide for details regarding how to configure permission in an Unreal application.

Note that stereo gaze data is not currently available.

Use the Get Gaze Data function to get a single gaze origin and direction that can be used to raycast into your scene to determine what the user is looking at.

Here is an example blueprint script that draws a small sphere in the direction the user is looking-

See Epic's documentation for the blueprint eye tracker apis in Unreal-
https://dev.epicgames.com/documentation/en-us/unreal-engine/BlueprintAPI/EyeTracking