static int RegisterDirtyVerticesCallback(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1); UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2); obj.RegisterDirtyVerticesCallback(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RegisterDirtyVerticesCallback(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.UI.Graphic.RegisterDirtyVerticesCallback"); #endif try { ToLua.CheckArgsCount(L, 2); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)ToLua.CheckObject <UnityEngine.UI.Graphic>(L, 1); UnityEngine.Events.UnityAction arg0 = (UnityEngine.Events.UnityAction)ToLua.CheckDelegate <UnityEngine.Events.UnityAction>(L, 2); obj.RegisterDirtyVerticesCallback(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RegisterDirtyVerticesCallback(IntPtr L) { LuaScriptMgr.CheckArgsCount(L, 2); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)LuaScriptMgr.GetUnityObjectSelf(L, 1, "UnityEngine.UI.Graphic"); UnityEngine.Events.UnityAction arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (UnityEngine.Events.UnityAction)LuaScriptMgr.GetNetObject(L, 2, typeof(UnityEngine.Events.UnityAction)); } else { LuaFunction func = LuaScriptMgr.GetLuaFunction(L, 2); arg0 = () => { func.Call(); }; } obj.RegisterDirtyVerticesCallback(arg0); return(0); }
static int RegisterDirtyVerticesCallback(IntPtr L) { L.ChkArgsCount(2); UnityEngine.UI.Graphic obj = (UnityEngine.UI.Graphic)L.ChkUnityObjectSelf(1, "UnityEngine.UI.Graphic"); UnityEngine.Events.UnityAction arg0 = null; LuaTypes funcType2 = L.Type(2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (UnityEngine.Events.UnityAction)L.ChkUserData(2, typeof(UnityEngine.Events.UnityAction)); } else { LuaFunction func = L.ChkLuaFunction(2); arg0 = () => { func.Call(); }; } obj.RegisterDirtyVerticesCallback(arg0); return(0); }