public abstract Raycast ( |
||
eventData | ||
resultAppendList | List |
|
return | void |
static public int Raycast(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.EventSystems.BaseRaycaster self = (UnityEngine.EventSystems.BaseRaycaster)checkSelf(l); UnityEngine.EventSystems.PointerEventData a1; checkType(l, 2, out a1); System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult> a2; checkType(l, 3, out a2); self.Raycast(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int Raycast(IntPtr l) { try { UnityEngine.EventSystems.BaseRaycaster self = (UnityEngine.EventSystems.BaseRaycaster)checkSelf(l); UnityEngine.EventSystems.PointerEventData a1; checkType(l, 2, out a1); System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult> a2; checkType(l, 3, out a2); self.Raycast(a1, a2); return(0); } catch (Exception e) { return(error(l, e)); } }
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); }
static public int Raycast(IntPtr l) { try{ UnityEngine.EventSystems.BaseRaycaster self = (UnityEngine.EventSystems.BaseRaycaster)checkSelf(l); UnityEngine.EventSystems.PointerEventData a1; checkType(l, 2, out a1); List <UnityEngine.EventSystems.RaycastResult> a2; checkType(l, 3, out a2); self.Raycast(a1, a2); return(0); } catch (Exception e) { LuaDLL.luaL_error(l, e.ToString()); return(0); } }
static int Raycast(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityEngine.EventSystems.BaseRaycaster obj = (UnityEngine.EventSystems.BaseRaycaster)ToLua.CheckObject(L, 1, typeof(UnityEngine.EventSystems.BaseRaycaster)); UnityEngine.EventSystems.PointerEventData arg0 = (UnityEngine.EventSystems.PointerEventData)ToLua.CheckObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult> arg1 = (System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult>)ToLua.CheckObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult>)); obj.Raycast(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }