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)
Declaration
public TrackedDeviceEventData(EventSystem eventSystem)
Parameters
| Type | Name | Description |
|---|---|---|
| EventSystem | eventSystem |
Properties
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 within the raypoints list that recieved 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> |