ChartRaycaster
public sealed class ChartRaycaster : BaseRaycasterLets the EventSystem reach charts in the world, such as 3D charts, for hover, tooltips, selection and orbit. Add it to each camera that should send them pointer events, next to a PhysicsRaycaster or on its own; charts need no colliders. Results are ordered by distance with other raycasters on the same camera, so nearer colliders still block charts behind them.
Methods
Section titled “Methods”
Raycast(PointerEventData, List)
Section titled “Raycast(PointerEventData, List)”public override void Raycast(PointerEventData eventData, List<RaycastResult> resultAppendList)Casts the pointer's ray through this camera against every enabled world chart.
Parameters
| Name | Type |
|---|---|
eventData |
UnityEngine.EventSystems.PointerEventData |
resultAppendList |
System.Collections.Generic.List{UnityEngine.EventSystems.RaycastResult} |
Constructors
Section titled “Constructors”
ChartRaycaster()
Section titled “ChartRaycaster()”public ChartRaycaster()Properties
Section titled “Properties”
EventMask
Section titled “EventMask”public LayerMask EventMask { get; set; }Layers whose charts receive pointer events.
Returns
UnityEngine.LayerMask
eventCamera
Section titled “eventCamera”public override Camera eventCamera { get; }The camera on this GameObject, which casts the pointer rays.
Returns
UnityEngine.Camera