docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TrackedDeviceEventData

    A custom UI event for devices that exist within 3D Unity space, separate from the camera's position.

    Inheritance
    object
    AbstractEventData
    BaseEventData
    PointerEventData
    TrackedDeviceEventData
    Inherited Members
    PointerEventData.hovered
    PointerEventData.IsPointerMoving()
    PointerEventData.IsScrolling()
    PointerEventData.ToString()
    PointerEventData.pointerEnter
    PointerEventData.lastPress
    PointerEventData.rawPointerPress
    PointerEventData.pointerDrag
    PointerEventData.pointerClick
    PointerEventData.pointerCurrentRaycast
    PointerEventData.pointerPressRaycast
    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.enterEventCamera
    PointerEventData.pressEventCamera
    PointerEventData.pointerPress
    BaseEventData.currentInputModule
    BaseEventData.selectedObject
    AbstractEventData.m_Used
    AbstractEventData.Reset()
    AbstractEventData.Use()
    AbstractEventData.used
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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>
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)