static int SetName(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); EffectRenderObj obj = (EffectRenderObj)ToLua.CheckObject(L, 1, typeof(EffectRenderObj)); string arg0 = ToLua.CheckString(L, 2); obj.SetName(ref arg0); LuaDLL.lua_pushstring(L, arg0); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }