Constructor XRControllerState
XRControllerState(double, Vector3, Quaternion, InputTrackingState, bool)
Initializes and returns an instance of XRControllerState.
Declaration
protected XRControllerState(double time, Vector3 position, Quaternion rotation, InputTrackingState inputTrackingState, bool isTracked)
Parameters
| Type | Name | Description |
|---|---|---|
| double | time | The time value for this controller. |
| Vector3 | position | The position for this controller. |
| Quaternion | rotation | The rotation for this controller. |
| InputTrackingState | inputTrackingState | The inputTrackingState for this controller. |
| bool | isTracked | Whether the controller is tracked this frame. |
XRControllerState()
Initializes and returns an instance of XRControllerState.
Declaration
public XRControllerState()
XRControllerState(XRControllerState)
Initializes and returns an instance of XRControllerState.
Declaration
public XRControllerState(XRControllerState value)
Parameters
| Type | Name | Description |
|---|---|---|
| XRControllerState | value | The XRControllerState object used to create this object. |
XRControllerState(double, Vector3, Quaternion, InputTrackingState, bool, bool, bool, bool)
Initializes and returns an instance of XRControllerState.
Declaration
public XRControllerState(double time, Vector3 position, Quaternion rotation, InputTrackingState inputTrackingState, bool isTracked, bool selectActive, bool activateActive, bool pressActive)
Parameters
| Type | Name | Description |
|---|---|---|
| double | time | The time value for this controller. |
| Vector3 | position | The position for this controller. |
| Quaternion | rotation | The rotation for this controller. |
| InputTrackingState | inputTrackingState | The inputTrackingState for this controller. |
| bool | isTracked | Whether the controller is tracked this frame. |
| bool | selectActive | Whether select is active or not. |
| bool | activateActive | Whether activate is active or not. |
| bool | pressActive | Whether UI press is active or not. |
XRControllerState(double, Vector3, Quaternion, InputTrackingState, bool, bool, bool, bool, float, float, float)
Initializes and returns an instance of XRControllerState.
Declaration
public XRControllerState(double time, Vector3 position, Quaternion rotation, InputTrackingState inputTrackingState, bool isTracked, bool selectActive, bool activateActive, bool pressActive, float selectValue, float activateValue, float pressValue)
Parameters
| Type | Name | Description |
|---|---|---|
| double | time | The time value for this controller. |
| Vector3 | position | The position for this controller. |
| Quaternion | rotation | The rotation for this controller. |
| InputTrackingState | inputTrackingState | The inputTrackingState for this controller. |
| bool | isTracked | Whether the controller is tracked this frame. |
| bool | selectActive | Whether select is active or not. |
| bool | activateActive | Whether activate is active or not. |
| bool | pressActive | Whether UI press is active or not. |
| float | selectValue | The select value. |
| float | activateValue | The activate value. |
| float | pressValue | The UI press value. |