docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class MetaSocialEyeGazeDevice

    An Input System device that exposes per-eye gaze data from XR_FB_eye_tracking_social. Enabled through MetaSocialEyeGazeFeature.

    Inheritance
    object
    InputControl
    InputDevice
    TrackedDevice
    MetaSocialEyeGazeDevice
    Inherited Members
    TrackedDevice.trackingState
    TrackedDevice.isTracked
    TrackedDevice.devicePosition
    TrackedDevice.deviceRotation
    InputDevice.InvalidDeviceId
    InputDevice.ReadValueFromBufferAsObject(void*, int)
    InputDevice.ReadValueFromStateAsObject(void*)
    InputDevice.ReadValueFromStateIntoBuffer(void*, void*, int)
    InputDevice.CompareValue(void*, void*)
    InputDevice.MakeCurrent()
    InputDevice.OnConfigurationChanged()
    InputDevice.ExecuteCommand<TCommand>(ref TCommand)
    InputDevice.ExecuteCommand(InputDeviceCommand*)
    InputDevice.description
    InputDevice.enabled
    InputDevice.canRunInBackground
    InputDevice.added
    InputDevice.remote
    InputDevice.native
    InputDevice.updateBeforeRender
    InputDevice.deviceId
    InputDevice.lastUpdateTime
    InputDevice.wasUpdatedThisFrame
    InputDevice.allControls
    InputDevice.valueType
    InputDevice.valueSizeInBytes
    InputDevice.all
    InputControl.m_StateBlock
    InputControl.ToString()
    InputControl.EvaluateMagnitude()
    InputControl.EvaluateMagnitude(void*)
    InputControl.WriteValueFromBufferIntoState(void*, int, void*)
    InputControl.WriteValueFromObjectIntoState(object, void*)
    InputControl.TryGetChildControl(string)
    InputControl.TryGetChildControl<TControl>(string)
    InputControl.GetChildControl(string)
    InputControl.GetChildControl<TControl>(string)
    InputControl.RefreshConfigurationIfNeeded()
    InputControl.RefreshConfiguration()
    InputControl.CalculateOptimizedControlDataType()
    InputControl.ApplyParameterChanges()
    InputControl.name
    InputControl.displayName
    InputControl.shortDisplayName
    InputControl.path
    InputControl.layout
    InputControl.variants
    InputControl.device
    InputControl.parent
    InputControl.children
    InputControl.usages
    InputControl.aliases
    InputControl.stateBlock
    InputControl.noisy
    InputControl.synthetic
    InputControl.this[string]
    InputControl.magnitude
    InputControl.currentStatePtr
    InputControl.previousFrameStatePtr
    InputControl.defaultStatePtr
    InputControl.noiseMaskPtr
    InputControl.stateOffsetRelativeToDeviceRoot
    InputControl.optimizedControlDataType
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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
    TrackedDevice.FinishSetup()

    OnAdded()

    The Input System calls this method when it adds the device to devices.

    Declaration
    protected override void OnAdded()
    Overrides
    InputDevice.OnAdded()
    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
    InputDevice.OnRemoved()
    Remarks

    This method runs after the Input System removes the device from devices.

    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)