Class VisionOSSpatialPointerDevice
Spatial pointer device for VisionOS that manages inputs and events.
Inherited Members
InputDevice.all
Namespace: UnityEngine.XR.VisionOS.InputDevices
Assembly: Unity.XR.VisionOS.dll
Syntax
[InputControlLayout(stateType = typeof(VisionOSSpatialPointerDeviceState))]
public class VisionOSSpatialPointerDevice : InputDevice, IInputStateCallbackReceiver, IInputUpdateCallbackReceiver
Properties
inputs
A list of spatial pointer control input states managed by this device.
Declaration
public ReadOnlyArray<VisionOSSpatialPointerControl> inputs { get; protected set; }
Property Value
Type | Description |
---|---|
ReadOnlyArray<VisionOSSpatialPointerControl> |
primaryInput
The primary visionOS spatial pointer control's input state managed by this input device.
Declaration
public VisionOSSpatialPointerControl primaryInput { get; protected set; }
Property Value
Type | Description |
---|---|
VisionOSSpatialPointerControl |
Methods
FinishSetup()
Initializes the input controls managed by the spatial pointer device.
Declaration
protected override void FinishSetup()
Overrides
GetStateOffsetForEvent(InputControl, InputEventPtr, ref uint)
Declaration
public bool GetStateOffsetForEvent(InputControl control, InputEventPtr eventPtr, ref uint offset)
Parameters
Type | Name | Description |
---|---|---|
InputControl | control | |
InputEventPtr | eventPtr | |
uint | offset |
Returns
Type | Description |
---|---|
bool |
OnNextUpdate()
Immediately sends a Moved input state for every Began event, and a None input state for every Ended event.
Declaration
public void OnNextUpdate()