Class TrackedDeviceEventData
A custom UI event for devices that exist within 3D Unity space, separate from the camera's position.
Inherited Members
PointerEventData.pointerEnter
PointerEventData.lastPress
PointerEventData.rawPointerPress
PointerEventData.pointerDrag
PointerEventData.pointerClick
PointerEventData.pointerCurrentRaycast
PointerEventData.pointerPressRaycast
PointerEventData.hovered
PointerEventData.eligibleForClick
PointerEventData.pointerId
PointerEventData.position
PointerEventData.delta
PointerEventData.pressPosition
PointerEventData.clickTime
PointerEventData.clickCount
PointerEventData.scrollDelta
PointerEventData.useDragThreshold
PointerEventData.dragging
PointerEventData.button
PointerEventData.pressure
PointerEventData.tangentialPressure
PointerEventData.altitudeAngle
PointerEventData.azimuthAngle
PointerEventData.twist
PointerEventData.radius
PointerEventData.radiusVariance
PointerEventData.fullyExited
PointerEventData.reentered
PointerEventData.IsPointerMoving()
PointerEventData.IsScrolling()
PointerEventData.enterEventCamera
PointerEventData.pressEventCamera
PointerEventData.pointerPress
PointerEventData.ToString()
BaseEventData.currentInputModule
BaseEventData.selectedObject
AbstractEventData.m_Used
AbstractEventData.Reset()
AbstractEventData.Use()
AbstractEventData.used
Namespace: UnityEngine.XR.Interaction.Toolkit.UI
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
public class TrackedDeviceEventData : PointerEventData
Constructors
TrackedDeviceEventData(EventSystem)
Initializes and returns an instance of TrackedDeviceEventData with event system.
Declaration
public TrackedDeviceEventData(EventSystem eventSystem)
Parameters
Type | Name | Description |
---|---|---|
EventSystem | eventSystem | The event system associated with the UI. |
Properties
interactor
(Read Only) The Interactor that triggered this event, or null if no interactor was responsible.
Declaration
public IUIInteractor interactor { get; }
Property Value
Type | Description |
---|---|
IUIInteractor |
layerMask
The physics layer mask to use when checking for hits, both in occlusion and UI objects.
Declaration
public LayerMask layerMask { get; set; }
Property Value
Type | Description |
---|---|
LayerMask |
rayHitIndex
Set by the ray caster, this is the index of the endpoint within the rayPoints list that received the hit.
Declaration
public int rayHitIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
rayPoints
A series of interconnected points Unity uses to track hovered and selected UI.
Declaration
public List<Vector3> rayPoints { get; set; }
Property Value
Type | Description |
---|---|
List<Vector3> |