Class VisionOSSpatialPointerControl
Represents the input control state of a VisionOSSpatialPointerState.
Inherited Members
Namespace: UnityEngine.XR.VisionOS.InputDevices
Assembly: Unity.XR.VisionOS.dll
Syntax
public class VisionOSSpatialPointerControl : InputControl<VisionOSSpatialPointerState>
Constructors
VisionOSSpatialPointerControl()
Creates a new VisionOSSpatialPointerControl.
Declaration
public VisionOSSpatialPointerControl()
Properties
inputDevicePosition
The vector3 input control for the pointer's input device position.
Declaration
public Vector3Control inputDevicePosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
inputDeviceRotation
The quaternion input control for the pointer's input device rotation.
Declaration
public QuaternionControl inputDeviceRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
interactionId
The integer input control for the pointer's interaction ID.
Declaration
public IntegerControl interactionId { get; set; }
Property Value
Type | Description |
---|---|
IntegerControl |
interactionRayRotation
The quaternion input control for the pointer's interaction ray rotation.
Declaration
public QuaternionControl interactionRayRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
isInProgress
Returns true if the touch phase has begun or currently moving, and false otherwise.
Declaration
public bool isInProgress { get; }
Property Value
Type | Description |
---|---|
bool |
isTracked
The button input control for the pointer's tracked state.
Declaration
public ButtonControl isTracked { get; set; }
Property Value
Type | Description |
---|---|
ButtonControl |
kind
The integer input control for the VisionOSSpatialPointerKind.
Declaration
public IntegerControl kind { get; set; }
Property Value
Type | Description |
---|---|
IntegerControl |
phase
The touch phase input control for the VisionOSSpatialPointerPhase.
Declaration
public TouchPhaseControl phase { get; set; }
Property Value
Type | Description |
---|---|
TouchPhaseControl |
startRayDirection
The vector3 input control for the pointer's start ray direction.
Declaration
public Vector3Control startRayDirection { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
startRayOrigin
The vector3 input control for the pointer's start ray origin.
Declaration
public Vector3Control startRayOrigin { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
startRayRotation
The quaternion input control for the pointer's start ray rotation.
Declaration
public QuaternionControl startRayRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
trackingState
The integer input control for the pointer's tracking state.
Declaration
public IntegerControl trackingState { get; set; }
Property Value
Type | Description |
---|---|
IntegerControl |
Methods
FinishSetup()
Initializes the child controls of the VisionOSSpatialPointerControl.
Declaration
protected override void FinishSetup()
Overrides
ReadUnprocessedValueFromState(void*)
Returns the unprocessed pointer state from the state pointer.
Declaration
public override VisionOSSpatialPointerState ReadUnprocessedValueFromState(void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
void* | statePtr | The VisionOSSpatialPointerState pointer to read the state from. |
Returns
Type | Description |
---|---|
VisionOSSpatialPointerState | The VisionOSSpatialPointerState value referenced by the pointer. |
Overrides
WriteValueIntoState(VisionOSSpatialPointerState, void*)
Writes the value into the state pointer.
Declaration
public override void WriteValueIntoState(VisionOSSpatialPointerState value, void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
VisionOSSpatialPointerState | value | The value to write into the pointer. |
void* | statePtr | The pointer that references the memory to write to. |