Struct XRSimulatedHMDState
State for input device representing a simulated XR HMD.
Implements
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
[InputControl(usage = "CenterEyePosition", offset = 56)]
public Vector3 centerEyePosition
Field Value
Type | Description |
---|---|
Vector3 |
centerEyeRotation
The rotation of the center eye on this device.
Declaration
[InputControl(usage = "CenterEyeRotation", offset = 68)]
public Quaternion centerEyeRotation
Field Value
Type | Description |
---|---|
Quaternion |
devicePosition
The position of the device.
Declaration
[InputControl(usage = "DevicePosition", offset = 89)]
public Vector3 devicePosition
Field Value
Type | Description |
---|---|
Vector3 |
deviceRotation
The rotation of this device.
Declaration
[InputControl(usage = "DeviceRotation", offset = 101)]
public Quaternion deviceRotation
Field Value
Type | Description |
---|---|
Quaternion |
isTracked
Informs to the developer whether the device is currently being tracked.
Declaration
[InputControl(usage = "IsTracked", layout = "Button", offset = 88)]
public bool isTracked
Field Value
Type | Description |
---|---|
bool |
leftEyePosition
The position of the left eye on this device.
Declaration
[InputControl(usage = "LeftEyePosition", offset = 0)]
public Vector3 leftEyePosition
Field Value
Type | Description |
---|---|
Vector3 |
leftEyeRotation
The rotation of the left eye on this device.
Declaration
[InputControl(usage = "LeftEyeRotation", offset = 12)]
public Quaternion leftEyeRotation
Field Value
Type | Description |
---|---|
Quaternion |
rightEyePosition
The position of the right eye on this device.
Declaration
[InputControl(usage = "RightEyePosition", offset = 28)]
public Vector3 rightEyePosition
Field Value
Type | Description |
---|---|
Vector3 |
rightEyeRotation
The rotation of the right eye on this device.
Declaration
[InputControl(usage = "RightEyeRotation", offset = 40)]
public Quaternion rightEyeRotation
Field Value
Type | Description |
---|---|
Quaternion |
trackingState
Represents the values being tracked for this device.
Declaration
[InputControl(usage = "TrackingState", layout = "Integer", offset = 84)]
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 |
---|---|
Four |
formatId
Memory format identifier for XRSimulated
Declaration
public static FourCC formatId { get; }
Property Value
Type | Description |
---|---|
Four |
See Also
Methods
Reset()
Resets the value of all fields to default or the identity rotation.
Declaration
public void Reset()