docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackedDeviceRaycaster

    Raycasting implementation for use with TrackedDevices.

    Inheritance
    Object
    TrackedDeviceRaycaster
    Namespace: UnityEngine.InputSystem.UI
    Syntax
    public class TrackedDeviceRaycaster : BaseRaycaster
    Remarks

    This component needs to be added alongside the Canvas component. Usually, raycasting is performed by the GraphicRaycaster component found there but for 3D raycasting necessary for tracked devices, this component is required.

    Properties

    blockingMask

    Declaration
    public LayerMask blockingMask { get; set; }
    Property Value
    Type Description
    LayerMask

    checkFor2DOcclusion

    Declaration
    public bool checkFor2DOcclusion { get; set; }
    Property Value
    Type Description
    Boolean

    checkFor3DOcclusion

    Declaration
    public bool checkFor3DOcclusion { get; set; }
    Property Value
    Type Description
    Boolean

    eventCamera

    Declaration
    public override Camera eventCamera { get; }
    Property Value
    Type Description
    Camera

    ignoreReversedGraphics

    Declaration
    public bool ignoreReversedGraphics { get; set; }
    Property Value
    Type Description
    Boolean

    maxDistance

    Declaration
    public float maxDistance { get; set; }
    Property Value
    Type Description
    Single

    Methods

    OnDisable()

    Declaration
    protected override void OnDisable()

    OnEnable()

    Declaration
    protected override void OnEnable()

    Raycast(PointerEventData, List<RaycastResult>)

    Declaration
    public override void Raycast(PointerEventData eventData, List<RaycastResult> resultAppendList)
    Parameters
    Type Name Description
    PointerEventData eventData
    List<RaycastResult> resultAppendList
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023