Struct XRSimulatedHMDState
State for input device representing a simulated XR HMD.
Inherited Members
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
formatId
Memory format identifier for XRSimulatedHMDState.
Declaration
public static readonly FourCC formatId { get; }
Property Value
Type | Description |
---|---|
FourCC |
See Also
Methods
Reset()
Resets the value of all fields to default or the identity rotation.
Declaration
public void Reset()