Class EyeGazeInteraction
This OpenXRInteractionFeature enables the use of eye gaze interaction profiles in OpenXR. It enables XR_EXT_eye_gaze_interaction in the underlying runtime. This creates a new InputDevice with the EyeTracking characteristic. This new device has both gazePosition and gazeRotation input features, as well as isTracked and trackingState usages to determine if the gaze is available.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Interactions
Assembly: solution.dll
Syntax
public class EyeGazeInteraction : OpenXRInteractionFeature
Fields
Name | Description |
---|---|
extensionString | The OpenXR Extension string. This is used by OpenXR to check if this extension is available or enabled. See eye gaze interaction extension documentation for more information on this OpenXR extension. |
featureId | The feature id string. This is used to give the feature a well known id for reference. |
Methods
Name | Description |
---|---|
GetDeviceLayoutName() | Return device layer out string used for registering device EyeGaze in InputSystem. |
GetInteractionProfileType() | Return interaction profile type. EyeGaze profile is Device type. |
OnInstanceCreate(ulong) | Called after xrCreateInstance. |
RegisterActionMapsWithRuntime() | Register action maps for this device with the OpenXR Runtime. Called at runtime before Start. |
RegisterDeviceLayout() | Registers the EyeGazeInteraction.EyeGazeDevice layout with the Input System. |
UnregisterDeviceLayout() | Removes the EyeGazeInteraction.EyeGazeDevice layout from the Input System. |