static int GetTextureSizeBytes(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.Texture arg0 = (UnityEngine.Texture)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.Texture)); int o = UnGfx.GetTextureSizeBytes(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }