static int set_images(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); ImageSetMaterial obj = (ImageSetMaterial)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name images"); } else { LuaDLL.luaL_error(L, "attempt to index images on a nil value"); } } obj.images = LuaScriptMgr.GetArrayObject <UnityEngine.UI.Image>(L, 3); return(0); }
static int get_isUpdate(IntPtr L) { object o = LuaScriptMgr.GetLuaObject(L, 1); ImageSetMaterial obj = (ImageSetMaterial)o; if (obj == null) { LuaTypes types = LuaDLL.lua_type(L, 1); if (types == LuaTypes.LUA_TTABLE) { LuaDLL.luaL_error(L, "unknown member name isUpdate"); } else { LuaDLL.luaL_error(L, "attempt to index isUpdate on a nil value"); } } LuaScriptMgr.Push(L, obj.isUpdate); return(1); }