Class MetaSocialEyeGazeDevice
An Input System device that exposes per-eye gaze data from XR_FB_eye_tracking_social.
Enabled through MetaSocialEyeGazeFeature.
Inherited Members
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.MetaOpenXR.dll
Syntax
[InitializeOnLoad]
[Preserve]
[InputControlLayout(displayName = "Meta Social Eye Gaze")]
public class MetaSocialEyeGazeDevice : TrackedDevice
Properties
current
The active MetaSocialEyeGazeDevice instance, or null if no device is connected.
Declaration
public static MetaSocialEyeGazeDevice current { get; }
Property Value
| Type | Description |
|---|---|
| MetaSocialEyeGazeDevice |
leftEyeConfidence
An AxisControl representing the gaze confidence of the left eye, in the range [0, 1].
Declaration
[InputControl(displayName = "Left Eye Confidence")]
public AxisControl leftEyeConfidence { get; }
Property Value
| Type | Description |
|---|---|
| AxisControl |
leftEyeIsValid
A ButtonControl that is true when the left eye gaze data is valid.
Corresponds to XrEyeGazeFB.isValid for the left eye.
Declaration
[InputControl(displayName = "Left Eye Is Valid")]
public ButtonControl leftEyeIsValid { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
leftEyePose
A PoseControl representing the gaze pose of the left eye in head-relative (view) space.
Declaration
[InputControl(displayName = "Left Eye Pose")]
public PoseControl leftEyePose { get; }
Property Value
| Type | Description |
|---|---|
| PoseControl |
rightEyeConfidence
An AxisControl representing the gaze confidence of the right eye, in the range [0, 1].
Declaration
[InputControl(displayName = "Right Eye Confidence")]
public AxisControl rightEyeConfidence { get; }
Property Value
| Type | Description |
|---|---|
| AxisControl |
rightEyeIsValid
A ButtonControl that is true when the right eye gaze data is valid.
Corresponds to XrEyeGazeFB.isValid for the right eye.
Declaration
[InputControl(displayName = "Right Eye Is Valid")]
public ButtonControl rightEyeIsValid { get; }
Property Value
| Type | Description |
|---|---|
| ButtonControl |
rightEyePose
A PoseControl representing the gaze pose of the right eye in head-relative (view) space.
Declaration
[InputControl(displayName = "Right Eye Pose")]
public PoseControl rightEyePose { get; }
Property Value
| Type | Description |
|---|---|
| PoseControl |
Methods
FinishSetup()
Performs final initialization after the Input System builds the control hierarchy.
Declaration
protected override void FinishSetup()
Overrides
OnAdded()
The Input System calls this method when it adds the device to devices.
Declaration
protected override void OnAdded()
Overrides
Remarks
This method runs after the Input System adds the device to devices.
OnRemoved()
The Input System calls this method when it removes the device from devices.
Declaration
protected override void OnRemoved()
Overrides
Remarks
This method runs after the Input System removes the device from devices.