Class VisionOSSpatialPointerControl
Inherited Members
InputControl<VisionOSSpatialPointerState>.valueType
InputControl<VisionOSSpatialPointerState>.valueSizeInBytes
InputControl<VisionOSSpatialPointerState>.value
InputControl<VisionOSSpatialPointerState>.ReadValue()
InputControl<VisionOSSpatialPointerState>.ReadValueFromPreviousFrame()
InputControl<VisionOSSpatialPointerState>.ReadDefaultValue()
InputControl<VisionOSSpatialPointerState>.ReadUnprocessedValue()
InputControl<VisionOSSpatialPointerState>.ProcessValue(VisionOSSpatialPointerState)
InputControl<VisionOSSpatialPointerState>.ProcessValue(ref VisionOSSpatialPointerState)
InputControl.name
InputControl.displayName
InputControl.shortDisplayName
InputControl.path
InputControl.layout
InputControl.variants
InputControl.device
InputControl.parent
InputControl.children
InputControl.usages
InputControl.aliases
InputControl.stateBlock
InputControl.noisy
InputControl.synthetic
InputControl.magnitude
InputControl.ToString()
InputControl.EvaluateMagnitude()
InputControl.RefreshConfigurationIfNeeded()
InputControl.RefreshConfiguration()
InputControl.m_StateBlock
InputControl.currentStatePtr
InputControl.previousFrameStatePtr
InputControl.defaultStatePtr
InputControl.noiseMaskPtr
InputControl.stateOffsetRelativeToDeviceRoot
InputControl.optimizedControlDataType
InputControl.CalculateOptimizedControlDataType()
InputControl.ApplyParameterChanges()
Namespace: UnityEngine.XR.VisionOS.InputDevices
Assembly: Unity.XR.VisionOS.dll
Syntax
public class VisionOSSpatialPointerControl : InputControl<VisionOSSpatialPointerState>
Constructors
VisionOSSpatialPointerControl()
Declaration
public VisionOSSpatialPointerControl()
Properties
inputDevicePosition
Declaration
public Vector3Control inputDevicePosition { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
inputDeviceRotation
Declaration
public QuaternionControl inputDeviceRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
interactionId
Declaration
public IntegerControl interactionId { get; set; }
Property Value
Type | Description |
---|---|
IntegerControl |
interactionRayRotation
Declaration
public QuaternionControl interactionRayRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
isInProgress
Declaration
public bool isInProgress { get; }
Property Value
Type | Description |
---|---|
bool |
isTracked
Declaration
public ButtonControl isTracked { get; set; }
Property Value
Type | Description |
---|---|
ButtonControl |
kind
Declaration
public IntegerControl kind { get; set; }
Property Value
Type | Description |
---|---|
IntegerControl |
phase
Declaration
public TouchPhaseControl phase { get; set; }
Property Value
Type | Description |
---|---|
TouchPhaseControl |
startRayDirection
Declaration
public Vector3Control startRayDirection { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
startRayOrigin
Declaration
public Vector3Control startRayOrigin { get; set; }
Property Value
Type | Description |
---|---|
Vector3Control |
startRayRotation
Declaration
public QuaternionControl startRayRotation { get; set; }
Property Value
Type | Description |
---|---|
QuaternionControl |
trackingState
Declaration
public IntegerControl trackingState { get; set; }
Property Value
Type | Description |
---|---|
IntegerControl |
Methods
FinishSetup()
Perform final initialization tasks after the control hierarchy has been put into place.
Declaration
protected override void FinishSetup()
Overrides
UnityEngine.InputSystem.InputControl<UnityEngine.XR.VisionOS.InputDevices.VisionOSSpatialPointerState>.FinishSetup()
Remarks
This method can be overridden to perform control- or device-specific setup work. The most common use case is for looking up child controls and storing them in local getters.
public class MyDevice : InputDevice
{
public ButtonControl button { get; private set; }
public AxisControl axis { get; private set; }
protected override void OnFinishSetup()
{
// Cache controls in getters.
button = GetChildControl("button");
axis = GetChildControl("axis");
}
}</code></pre></example>
ReadUnprocessedValueFromState(void*)
Declaration
public override VisionOSSpatialPointerState ReadUnprocessedValueFromState(void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
void* | statePtr |
Returns
Type | Description |
---|---|
VisionOSSpatialPointerState |
Overrides
WriteValueIntoState(VisionOSSpatialPointerState, void*)
Declaration
public override void WriteValueIntoState(VisionOSSpatialPointerState value, void* statePtr)
Parameters
Type | Name | Description |
---|---|---|
VisionOSSpatialPointerState | value | |
void* | statePtr |