Struct XRSimulatedHMDState
State for input device representing a simulated XR HMD.
Implements
IInputStateTypeInfo
Inherited Members
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
See IInputStateTypeInfo.format.
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