#if USE_UNI_LUA using LuaAPI = UniLua.Lua; using RealStatePtr = UniLua.ILuaState; using LuaCSFunction = UniLua.CSharpFunctionDelegate; #else using LuaAPI = XLua.LuaDLL.Lua; using RealStatePtr = System.IntPtr; using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; #endif using XLua; using System.Collections.Generic; namespace XLua.CSObjectWrap { using Utils = XLua.Utils; public class UnityEngineRectIntWrap { public static void __Register(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnityEngine.RectInt); Utils.BeginObjectRegister(type, L, translator, 0, 6, 14, 12); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClampToBounds", _m_ClampToBounds); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Overlaps", _m_Overlaps); Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals); Utils.RegisterFunc(L, Utils.GETTER_IDX, "x", _g_get_x); Utils.RegisterFunc(L, Utils.GETTER_IDX, "y", _g_get_y); Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center); Utils.RegisterFunc(L, Utils.GETTER_IDX, "min", _g_get_min); Utils.RegisterFunc(L, Utils.GETTER_IDX, "max", _g_get_max); Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width); Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height); Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMin", _g_get_xMin); Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMin", _g_get_yMin); Utils.RegisterFunc(L, Utils.GETTER_IDX, "xMax", _g_get_xMax); Utils.RegisterFunc(L, Utils.GETTER_IDX, "yMax", _g_get_yMax); Utils.RegisterFunc(L, Utils.GETTER_IDX, "position", _g_get_position); Utils.RegisterFunc(L, Utils.GETTER_IDX, "size", _g_get_size); Utils.RegisterFunc(L, Utils.GETTER_IDX, "allPositionsWithin", _g_get_allPositionsWithin); Utils.RegisterFunc(L, Utils.SETTER_IDX, "x", _s_set_x); Utils.RegisterFunc(L, Utils.SETTER_IDX, "y", _s_set_y); Utils.RegisterFunc(L, Utils.SETTER_IDX, "min", _s_set_min); Utils.RegisterFunc(L, Utils.SETTER_IDX, "max", _s_set_max); Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width); Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height); Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMin", _s_set_xMin); Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMin", _s_set_yMin); Utils.RegisterFunc(L, Utils.SETTER_IDX, "xMax", _s_set_xMax); Utils.RegisterFunc(L, Utils.SETTER_IDX, "yMax", _s_set_yMax); Utils.RegisterFunc(L, Utils.SETTER_IDX, "position", _s_set_position); Utils.RegisterFunc(L, Utils.SETTER_IDX, "size", _s_set_size); Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); Utils.EndClassRegister(type, L, translator); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if(LuaAPI.lua_gettop(L) == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _xMin = LuaAPI.xlua_tointeger(L, 2); int _yMin = LuaAPI.xlua_tointeger(L, 3); int _width = LuaAPI.xlua_tointeger(L, 4); int _height = LuaAPI.xlua_tointeger(L, 5); var gen_ret = new UnityEngine.RectInt(_xMin, _yMin, _width, _height); translator.Push(L, gen_ret); return 1; } if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable(L, 2) && translator.Assignable(L, 3)) { UnityEngine.Vector2Int _position;translator.Get(L, 2, out _position); UnityEngine.Vector2Int _size;translator.Get(L, 3, out _size); var gen_ret = new UnityEngine.RectInt(_position, _size); translator.Push(L, gen_ret); return 1; } if (LuaAPI.lua_gettop(L) == 1) { translator.Push(L, default(UnityEngine.RectInt)); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectInt constructor!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_SetMinMax(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.Vector2Int _minPosition;translator.Get(L, 2, out _minPosition); UnityEngine.Vector2Int _maxPosition;translator.Get(L, 3, out _maxPosition); gen_to_be_invoked.SetMinMax( _minPosition, _maxPosition ); translator.Update(L, 1, gen_to_be_invoked); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ClampToBounds(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.RectInt _bounds;translator.Get(L, 2, out _bounds); gen_to_be_invoked.ClampToBounds( _bounds ); translator.Update(L, 1, gen_to_be_invoked); return 0; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Contains(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.Vector2Int _position;translator.Get(L, 2, out _position); var gen_ret = gen_to_be_invoked.Contains( _position ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Overlaps(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.RectInt _other;translator.Get(L, 2, out _other); var gen_ret = gen_to_be_invoked.Overlaps( _other ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_ToString(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); int gen_param_count = LuaAPI.lua_gettop(L); if(gen_param_count == 1) { var gen_ret = gen_to_be_invoked.ToString( ); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _format = LuaAPI.lua_tostring(L, 2); var gen_ret = gen_to_be_invoked.ToString( _format ); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable(L, 3)) { string _format = LuaAPI.lua_tostring(L, 2); System.IFormatProvider _formatProvider = (System.IFormatProvider)translator.GetObject(L, 3, typeof(System.IFormatProvider)); var gen_ret = gen_to_be_invoked.ToString( _format, _formatProvider ); LuaAPI.lua_pushstring(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RectInt.ToString!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _m_Equals(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); { UnityEngine.RectInt _other;translator.Get(L, 2, out _other); var gen_ret = gen_to_be_invoked.Equals( _other ); LuaAPI.lua_pushboolean(L, gen_ret); translator.Update(L, 1, gen_to_be_invoked); return 1; } } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_x(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.x); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_y(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.y); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_center(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.PushUnityEngineVector2(L, gen_to_be_invoked.center); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_min(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.min); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_max(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.max); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_width(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_height(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_xMin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.xMin); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_yMin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yMin); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_xMax(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.xMax); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_yMax(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.yMax); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_position(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.position); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_size(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.size); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _g_get_allPositionsWithin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); translator.Push(L, gen_to_be_invoked.allPositionsWithin); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 1; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_x(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.x = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_y(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.y = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_min(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.min = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_max(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.max = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_width(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.width = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_height(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_xMin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.xMin = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_yMin(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.yMin = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_xMax(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.xMax = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_yMax(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); gen_to_be_invoked.yMax = LuaAPI.xlua_tointeger(L, 2); translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_position(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.position = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int _s_set_size(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.RectInt gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked); UnityEngine.Vector2Int gen_value;translator.Get(L, 2, out gen_value); gen_to_be_invoked.size = gen_value; translator.Update(L, 1, gen_to_be_invoked); } catch(System.Exception gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + gen_e); } return 0; } } }