Class TrackedDeviceEventData
A custom UI event for devices that exist within 3D Unity space, separate from the camera's position.
Namespace: UnityEngine.XR.Interaction.Toolkit.UI
Syntax
public class TrackedDeviceEventData : PointerEventData
Constructors
TrackedDeviceEventData(EventSystem)
Created 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 raycaster, 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 |
---|---|
Int32 |
rayPoints
A series of interconnected points used to track hovered and selected UI.
Declaration
public List<Vector3> rayPoints { get; set; }
Property Value
Type | Description |
---|---|
List<Vector3> |