Struct VisionOSSpatialPointerEvent
Struct to represent data for a visionOS spatial pointer event.
Inherited Members
Namespace: UnityEngine.XR.VisionOS.InputDevices
Assembly: Unity.XR.VisionOS.dll
Syntax
public struct VisionOSSpatialPointerEvent
Fields
inputDevicePosition
The input device position of the spatial pointer event.
Declaration
public Vector3 inputDevicePosition
Field Value
Type | Description |
---|---|
Vector3 |
inputDeviceRotation
The input device rotation of the spatial pointer event.
Declaration
public Quaternion inputDeviceRotation
Field Value
Type | Description |
---|---|
Quaternion |
interactionId
The interaction Id of the spatial pointer event.
Declaration
public int interactionId
Field Value
Type | Description |
---|---|
int |
kind
The spatial pointer kind of the spatial pointer event.
Declaration
public VisionOSSpatialPointerKind kind
Field Value
Type | Description |
---|---|
VisionOSSpatialPointerKind |
modifierKeys
The modifier key states of the spatial pointer event.
Declaration
public VisionOSSpatialPointerModifierKeys modifierKeys
Field Value
Type | Description |
---|---|
VisionOSSpatialPointerModifierKeys |
phase
The pointer phase of the spatial pointer event.
Declaration
public VisionOSSpatialPointerPhase phase
Field Value
Type | Description |
---|---|
VisionOSSpatialPointerPhase |
rayDirection
The ray direction of the spatial pointer event.
Declaration
public Vector3 rayDirection
Field Value
Type | Description |
---|---|
Vector3 |
rayOrigin
The ray origin of the spatial pointer event.
Declaration
public Vector3 rayOrigin
Field Value
Type | Description |
---|---|
Vector3 |