docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct XRSimulatedHMDState

    State for input device representing a simulated XR HMD.

    Implements
    IInputStateTypeInfo
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public struct XRSimulatedHMDState : IInputStateTypeInfo

    Fields

    centerEyePosition

    The position of the center eye on this device.

    Declaration
    public Vector3 centerEyePosition
    Field Value
    Type Description
    Vector3

    centerEyeRotation

    The rotation of the center eye on this device.

    Declaration
    public Quaternion centerEyeRotation
    Field Value
    Type Description
    Quaternion

    devicePosition

    The position of the device.

    Declaration
    public Vector3 devicePosition
    Field Value
    Type Description
    Vector3

    deviceRotation

    The rotation of this device.

    Declaration
    public Quaternion deviceRotation
    Field Value
    Type Description
    Quaternion

    isTracked

    Informs to the developer whether the device is currently being tracked.

    Declaration
    public bool isTracked
    Field Value
    Type Description
    bool

    leftEyePosition

    The position of the left eye on this device.

    Declaration
    public Vector3 leftEyePosition
    Field Value
    Type Description
    Vector3

    leftEyeRotation

    The rotation of the left eye on this device.

    Declaration
    public Quaternion leftEyeRotation
    Field Value
    Type Description
    Quaternion

    rightEyePosition

    The position of the right eye on this device.

    Declaration
    public Vector3 rightEyePosition
    Field Value
    Type Description
    Vector3

    rightEyeRotation

    The rotation of the right eye on this device.

    Declaration
    public Quaternion rightEyeRotation
    Field Value
    Type Description
    Quaternion

    trackingState

    Represents the values being tracked for this device.

    Declaration
    public int trackingState
    Field Value
    Type Description
    int

    Properties

    format

    The data format identifier of the state.

    Declaration
    public FourCC format { get; }
    Property Value
    Type Description
    FourCC

    formatId

    Memory format identifier for XRSimulatedHMDState.

    Declaration
    public static FourCC formatId { get; }
    Property Value
    Type Description
    FourCC
    See Also
    format

    Methods

    Reset()

    Resets the value of all fields to default or the identity rotation.

    Declaration
    public void Reset()

    Implements

    UnityEngine.InputSystem.LowLevel.IInputStateTypeInfo
    In This Article
    Back to top
    Copyright © 2025 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)