Skip to main content
Version: 21 Aug 2024

Input Binding Paths

This guide provides information on the input paths that are supported on Magic Leap 2 when using the OpenXR Eye Gaze Interaction Profile. For general information about OpenXR input in Unity, see the Unity OpenXR Plugin Input Manual.

caution

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

caution

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

Open XR Gaze Interaction

Use this layout to retrieve the pose data that the extension returns. Currently the paths do not appear in the Unity Input System drop-down menus. Use the following binding paths to query the position and rotation of the gaze.

NamePathTypeDescription
Position<EyeGaze>/pose/positionVector3A point between both of the user's eyes which can be used as the origin for casting a ray based on the user's gaze.
Rotation<EyeGaze>/pose/rotationQuaternionThe orientation of the gaze corresponding to the direction in which the user's eyes are looking.

More Information: