Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

EventSystem.RaycastAll

Switch to Manual
public function RaycastAll(eventData: EventSystems.PointerEventData, raycastResults: List<RaycastResult>): void;

Parameters

eventDataCurrent pointer data.
raycastResultsList of 'hits' to populate.

Description

Raycast into the scene using all configured BaseRaycasters.