private void Update_EDITOR() { #region COMPONENTS this.canvas = this.GetComponentsInChildren <Canvas>(true)[0]; var raycasters = this.GetComponentsInChildren <UnityEngine.EventSystems.BaseRaycaster>(true); if (raycasters != null && raycasters.Length > 0) { this.raycaster = raycasters[0]; } #endregion this.initializedChild = (this.canvas != null); #region SETUP if (this.initializedChild == true) { // Canvas this.canvas.overrideSorting = true; this.canvas.sortingLayerName = "Windows"; this.canvas.sortingOrder = 0; // Raycaster if ((this.raycaster as GraphicRaycaster) != null) { (this.raycaster as GraphicRaycaster).GetType().GetField("m_BlockingMask", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue((this.raycaster as GraphicRaycaster), (LayerMask)(1 << this.gameObject.layer)); } } #endregion }
static int _g_get_renderOrderPriority(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.EventSystems.BaseRaycaster __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseRaycaster)translator.FastGetCSObj(L, 1); LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.renderOrderPriority); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_eventCamera(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.EventSystems.BaseRaycaster __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseRaycaster)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.eventCamera); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static StackObject *get_eventCamera_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.EventSystems.BaseRaycaster instance_of_this_method = (UnityEngine.EventSystems.BaseRaycaster) typeof(UnityEngine.EventSystems.BaseRaycaster).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.eventCamera; return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static StackObject *get_sortOrderPriority_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.EventSystems.BaseRaycaster instance_of_this_method = (UnityEngine.EventSystems.BaseRaycaster) typeof(UnityEngine.EventSystems.BaseRaycaster).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.sortOrderPriority; __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method; return(__ret + 1); }
static StackObject *get_rootRaycaster_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.EventSystems.BaseRaycaster instance_of_this_method = (UnityEngine.EventSystems.BaseRaycaster) typeof(UnityEngine.EventSystems.BaseRaycaster).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.rootRaycaster; object obj_result_of_this_method = result_of_this_method; if (obj_result_of_this_method is CrossBindingAdaptorType) { return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance)); } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_ToString(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.EventSystems.BaseRaycaster __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseRaycaster)translator.FastGetCSObj(L, 1); try { { string __cl_gen_ret = __cl_gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static StackObject *Raycast_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult> @resultAppendList = (System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult>) typeof(System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.EventSystems.PointerEventData @eventData = (UnityEngine.EventSystems.PointerEventData) typeof(UnityEngine.EventSystems.PointerEventData).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.EventSystems.BaseRaycaster instance_of_this_method = (UnityEngine.EventSystems.BaseRaycaster) typeof(UnityEngine.EventSystems.BaseRaycaster).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.Raycast(@eventData, @resultAppendList); return(__ret); }
static int _m_Raycast(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.EventSystems.BaseRaycaster __cl_gen_to_be_invoked = (UnityEngine.EventSystems.BaseRaycaster)translator.FastGetCSObj(L, 1); try { { UnityEngine.EventSystems.PointerEventData eventData = (UnityEngine.EventSystems.PointerEventData)translator.GetObject(L, 2, typeof(UnityEngine.EventSystems.PointerEventData)); System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult> resultAppendList = (System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult>)translator.GetObject(L, 3, typeof(System.Collections.Generic.List <UnityEngine.EventSystems.RaycastResult>)); __cl_gen_to_be_invoked.Raycast(eventData, resultAppendList); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
private void Update_EDITOR() { #region COMPONENTS var canvases = this.GetComponentsInChildren <Canvas>(true); if (canvases != null && canvases.Length > 0) { this.canvas = canvases[0]; } var scalers = this.GetComponentsInChildren <CanvasScaler>(true); if (scalers != null && scalers.Length > 0) { this.canvasScaler = scalers[0]; } var raycasters = this.GetComponentsInChildren <UnityEngine.EventSystems.BaseRaycaster>(true); if (raycasters != null && raycasters.Length > 0) { this.raycaster = raycasters[0]; } #endregion this.initializedChild = (this.canvas != null); #region SETUP if (this.initializedChild == true) { // Canvas WindowSystem.ApplyToSettings(this.canvas); // Raycaster if ((this.raycaster as GraphicRaycaster) != null) { (this.raycaster as GraphicRaycaster).GetType().GetField("m_BlockingMask", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue((this.raycaster as GraphicRaycaster), (LayerMask)(1 << this.gameObject.layer)); } } #endregion }
private void Update_EDITOR() { #region COMPONENTS var canvases = this.GetComponentsInChildren<Canvas>(true); if (canvases != null && canvases.Length > 0) this.canvas = canvases[0]; var scalers = this.GetComponentsInChildren<CanvasScaler>(true); if (scalers != null && scalers.Length > 0) this.canvasScaler = scalers[0]; var raycasters = this.GetComponentsInChildren<UnityEngine.EventSystems.BaseRaycaster>(true); if (raycasters != null && raycasters.Length > 0) this.raycaster = raycasters[0]; #endregion this.initializedChild = (this.canvas != null); #region SETUP if (this.initializedChild == true) { // Canvas WindowSystem.ApplyToSettings(this.canvas); // Raycaster if ((this.raycaster as GraphicRaycaster) != null) { (this.raycaster as GraphicRaycaster).GetType().GetField("m_BlockingMask", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue((this.raycaster as GraphicRaycaster), (LayerMask)(1 << this.gameObject.layer)); } } #endregion }
private void Update_EDITOR() { #region COMPONENTS this.canvas = this.GetComponentsInChildren<Canvas>(true)[0]; var raycasters = this.GetComponentsInChildren<UnityEngine.EventSystems.BaseRaycaster>(true); if (raycasters != null && raycasters.Length > 0) this.raycaster = raycasters[0]; #endregion this.initializedChild = (this.canvas != null); #region SETUP if (this.initializedChild == true) { // Canvas this.canvas.overrideSorting = true; this.canvas.sortingLayerName = "Windows"; this.canvas.sortingOrder = 0; // Raycaster if ((this.raycaster as GraphicRaycaster) != null) { (this.raycaster as GraphicRaycaster).GetType().GetField("m_BlockingMask", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).SetValue((this.raycaster as GraphicRaycaster), (LayerMask)(1 << this.gameObject.layer)); } } #endregion }