public void RaycastAll(PointerEventData eventData, List <RaycastResult> raycastResults) { raycastResults.Clear(); List <BaseRaycaster> raycasters = RaycasterManager.GetRaycasters(); for (int i = 0; i < raycasters.Count; i++) { BaseRaycaster baseRaycaster = raycasters[i]; if (!(baseRaycaster == null) && baseRaycaster.IsActive()) { baseRaycaster.Raycast(eventData, raycastResults); } } raycastResults.Sort(EventSystem.s_RaycastComparer); }
public void RaycastAll(PointerEventData eventData, List <RaycastResult> raycastResults) { raycastResults.Clear(); List <BaseRaycaster> raycasters = RaycasterManager.GetRaycasters(); for (int index = 0; index < raycasters.Count; ++index) { BaseRaycaster baseRaycaster = raycasters[index]; if (!((UnityEngine.Object)baseRaycaster == (UnityEngine.Object)null) && baseRaycaster.IsActive()) { baseRaycaster.Raycast(eventData, raycastResults); } } raycastResults.Sort(EventSystem.s_RaycastComparer); }