예제 #1
0
        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);
        }
예제 #2
0
        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);
        }