Class TrackedDeviceRaycaster
Raycasting implementation for use with TrackedDevices.
Inheritance
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 : BaseRaycasterRemarks
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>)