Skip to content

ChartRaycaster

ClassChartGuruChartGuru
public sealed class ChartRaycaster : BaseRaycaster

Lets 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.

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}

public ChartRaycaster()

public LayerMask EventMask { get; set; }

Layers whose charts receive pointer events.

Returns

UnityEngine.LayerMask

public override Camera eventCamera { get; }

The camera on this GameObject, which casts the pointer rays.

Returns

UnityEngine.Camera