docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackedDeviceRaycaster

    Raycasting implementation for use with TrackedDevices.

    Inheritance
    Object
    UnityEngine.EventSystems.UIBehaviour
    UnityEngine.EventSystems.BaseRaycaster
    TrackedDeviceRaycaster
    Inherited Members
    UnityEngine.EventSystems.BaseRaycaster.ToString()
    UnityEngine.EventSystems.BaseRaycaster.OnCanvasHierarchyChanged()
    UnityEngine.EventSystems.BaseRaycaster.OnTransformParentChanged()
    UnityEngine.EventSystems.BaseRaycaster.sortOrderPriority
    UnityEngine.EventSystems.BaseRaycaster.renderOrderPriority
    UnityEngine.EventSystems.BaseRaycaster.rootRaycaster
    UnityEngine.EventSystems.UIBehaviour.Awake()
    UnityEngine.EventSystems.UIBehaviour.Start()
    UnityEngine.EventSystems.UIBehaviour.OnDestroy()
    UnityEngine.EventSystems.UIBehaviour.IsActive()
    UnityEngine.EventSystems.UIBehaviour.OnValidate()
    UnityEngine.EventSystems.UIBehaviour.Reset()
    UnityEngine.EventSystems.UIBehaviour.OnRectTransformDimensionsChange()
    UnityEngine.EventSystems.UIBehaviour.OnBeforeTransformParentChanged()
    UnityEngine.EventSystems.UIBehaviour.OnDidApplyAnimationProperties()
    UnityEngine.EventSystems.UIBehaviour.OnCanvasGroupChanged()
    UnityEngine.EventSystems.UIBehaviour.IsDestroyed()
    Namespace: UnityEngine.InputSystem.UI
    Syntax
    [AddComponentMenu("Event/Tracked Device Raycaster")]
    [RequireComponent(typeof(Canvas))]
    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
    Overrides
    UnityEngine.EventSystems.BaseRaycaster.eventCamera

    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()
    Overrides
    UnityEngine.EventSystems.BaseRaycaster.OnDisable()

    OnEnable()

    Declaration
    protected override void OnEnable()
    Overrides
    UnityEngine.EventSystems.BaseRaycaster.OnEnable()

    Raycast(PointerEventData, List<RaycastResult>)

    Declaration
    public override void Raycast(PointerEventData eventData, List<RaycastResult> resultAppendList)
    Parameters
    Type Name Description
    UnityEngine.EventSystems.PointerEventData eventData
    List<UnityEngine.EventSystems.RaycastResult> resultAppendList
    Overrides
    UnityEngine.EventSystems.BaseRaycaster.Raycast(UnityEngine.EventSystems.PointerEventData, System.Collections.Generic.List<UnityEngine.EventSystems.RaycastResult>)
    Back to top
    Terms of use
    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