UnityEngine.EventSystems.RaycasterManager.GetRaycasters C# (CSharp) Method

GetRaycasters() public static method

public static GetRaycasters ( ) : List
return List
        public static List<BaseRaycaster> GetRaycasters()
        {
            return s_Raycasters;
        }

Usage Example

Beispiel #1
0
        public void RaycastAll(PointerEventData eventData, List <RaycastResult> raycastResults)
        {
            // DOC-HINT :::::: multi event system support
            // check if the eventData passed to the method does not belong to the eventsystem
            if (!this.CompareEventSystemID(eventData))
            {
                // quit method execution
                return;
            }

            raycastResults.Clear();
            var modules = RaycasterManager.GetRaycasters();

            for (int i = 0; i < modules.Count; ++i)
            {
                var module = modules[i];
                if (module == null || !module.IsActive())
                {
                    continue;
                }

                module.Raycast(eventData, raycastResults);
            }

            raycastResults.Sort(s_RaycastComparer);
        }
All Usage Examples Of UnityEngine.EventSystems.RaycasterManager::GetRaycasters