/// <summary> /// Read the data into the specified value. /// </summary> /// <param name="value">Value.</param> /// <param name="reader">Reader.</param> public override void ReadInto(object value, ISaveGameReader reader) { UnityEngine.UI.RectMask2D rectMask2D = (UnityEngine.UI.RectMask2D)value; foreach (string property in reader.Properties) { switch (property) { case "useGUILayout": rectMask2D.useGUILayout = reader.ReadProperty <System.Boolean> (); break; case "enabled": rectMask2D.enabled = reader.ReadProperty <System.Boolean> (); break; case "tag": rectMask2D.tag = reader.ReadProperty <System.String> (); break; case "name": rectMask2D.name = reader.ReadProperty <System.String> (); break; case "hideFlags": rectMask2D.hideFlags = reader.ReadProperty <UnityEngine.HideFlags> (); break; } } }
static int _m_IsRaycastLocationValid(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); { UnityEngine.Vector2 _sp; translator.Get(L, 2, out _sp); UnityEngine.Camera _eventCamera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera)); bool gen_ret = gen_to_be_invoked.IsRaycastLocationValid(_sp, _eventCamera); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
/// <summary> /// Write the specified value using the writer. /// </summary> /// <param name="value">Value.</param> /// <param name="writer">Writer.</param> public override void Write(object value, ISaveGameWriter writer) { UnityEngine.UI.RectMask2D rectMask2D = (UnityEngine.UI.RectMask2D)value; writer.WriteProperty("useGUILayout", rectMask2D.useGUILayout); writer.WriteProperty("enabled", rectMask2D.enabled); writer.WriteProperty("tag", rectMask2D.tag); writer.WriteProperty("name", rectMask2D.name); writer.WriteProperty("hideFlags", rectMask2D.hideFlags); }
static int _g_get_canvasRect(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { UnityEngine.UI.RectMask2D __cl_gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); translator.Push(L, __cl_gen_to_be_invoked.canvasRect); } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(1); }
static int _g_get_rectTransform(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.rectTransform); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _s_set_softness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); UnityEngine.Vector2Int gen_value; translator.Get(L, 2, out gen_value); gen_to_be_invoked.softness = gen_value; } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static StackObject* get_rectTransform_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.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.UI.RectMask2D instance_of_this_method = (UnityEngine.UI.RectMask2D)typeof(UnityEngine.UI.RectMask2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.rectTransform; return ILIntepreter.PushObject(__ret, __mStack, result_of_this_method); }
static StackObject* PerformClipping_3(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.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.UI.RectMask2D instance_of_this_method = (UnityEngine.UI.RectMask2D)typeof(UnityEngine.UI.RectMask2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.PerformClipping(); return __ret; }
static StackObject *GetRectMasksForClip_6(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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Collections.Generic.List <UnityEngine.UI.RectMask2D> masks = (System.Collections.Generic.List <UnityEngine.UI.RectMask2D>) typeof(System.Collections.Generic.List <UnityEngine.UI.RectMask2D>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.RectMask2D clipper = (UnityEngine.UI.RectMask2D) typeof(UnityEngine.UI.RectMask2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); UnityEngine.UI.MaskUtilities.GetRectMasksForClip(clipper, masks); return(__ret); }
static StackObject *RemoveClippable_5(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, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.UI.IClippable @clippable = (UnityEngine.UI.IClippable) typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.UI.RectMask2D instance_of_this_method = (UnityEngine.UI.RectMask2D) typeof(UnityEngine.UI.RectMask2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.RemoveClippable(@clippable); return(__ret); }
/// <summary> /// Updates the clip parent. /// </summary> public void UpdateClipParent() { if (m_HyperText == null) { return; } // copied from MaskableGraphic.UpdateClipParent() UnityEngine.UI.RectMask2D newParent = (m_HyperText.maskable && m_HyperText.IsActive()) ? UnityEngine.UI.MaskUtilities.GetRectMaskForClippable(this) : null; if (newParent != m_ParentMask && m_ParentMask != null) { m_ParentMask.RemoveClippable(this); } if (newParent != null) { newParent.AddClippable(this); } m_ParentMask = newParent; }
static int _m_PerformClipping(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D __cl_gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.PerformClipping( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRectMasksForClip_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { UnityEngine.UI.RectMask2D clipper = (UnityEngine.UI.RectMask2D)translator.GetObject(L, 1, typeof(UnityEngine.UI.RectMask2D)); System.Collections.Generic.List <UnityEngine.UI.RectMask2D> masks = (System.Collections.Generic.List <UnityEngine.UI.RectMask2D>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.UI.RectMask2D>)); UnityEngine.UI.MaskUtilities.GetRectMasksForClip(clipper, masks); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_GetRectMaskForClippable_xlua_st_(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); try { { UnityEngine.UI.IClippable clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 1, typeof(UnityEngine.UI.IClippable)); UnityEngine.UI.RectMask2D __cl_gen_ret = UnityEngine.UI.MaskUtilities.GetRectMaskForClippable(clippable); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_UpdateClipSoftness(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.UpdateClipSoftness( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_RemoveClippable(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.UI.RectMask2D __cl_gen_to_be_invoked = (UnityEngine.UI.RectMask2D)translator.FastGetCSObj(L, 1); try { { UnityEngine.UI.IClippable clippable = (UnityEngine.UI.IClippable)translator.GetObject(L, 2, typeof(UnityEngine.UI.IClippable)); __cl_gen_to_be_invoked.RemoveClippable(clippable); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static StackObject* IsRaycastLocationValid_2(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.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); UnityEngine.Camera @eventCamera = (UnityEngine.Camera)typeof(UnityEngine.Camera).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Vector2 @sp = (UnityEngine.Vector2)typeof(UnityEngine.Vector2).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.UI.RectMask2D instance_of_this_method = (UnityEngine.UI.RectMask2D)typeof(UnityEngine.UI.RectMask2D).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.IsRaycastLocationValid(@sp, @eventCamera); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return __ret + 1; }
/// <summary> /// Read the data using the reader. /// </summary> /// <param name="reader">Reader.</param> public override object Read(ISaveGameReader reader) { UnityEngine.UI.RectMask2D rectMask2D = SaveGameType.CreateComponent <UnityEngine.UI.RectMask2D> (); ReadInto(rectMask2D, reader); return(rectMask2D); }