docs.unity3d.com
    Show / Hide Table of Contents

    Struct XRSimulatedHMDState

    State for input device representing a simulated XR HMD.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs.Simulation
    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
    Boolean

    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
    Int32

    Properties

    format

    See IInputStateTypeInfo.format.

    Declaration
    public readonly FourCC format { get; }
    Property Value
    Type Description
    FourCC
    Implements
    IInputStateTypeInfo.format

    formatId

    Memory format identifier for XRSimulatedHMDState.

    Declaration
    public static readonly 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()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023