docs.unity.cn
    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 © 2021 Unity Technologies
    Generated by DocFX
    on Tuesday, November 2, 2021
    Terms of use