|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class UnityEngine_TextureWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UnityEngine.Texture), typeof(UnityEngine.Object));
- L.RegFunction("SetGlobalAnisotropicFilteringLimits", SetGlobalAnisotropicFilteringLimits);
- L.RegFunction("GetNativeTexturePtr", GetNativeTexturePtr);
- L.RegFunction("IncrementUpdateCount", IncrementUpdateCount);
- L.RegFunction("SetStreamingTextureMaterialDebugProperties", SetStreamingTextureMaterialDebugProperties);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("masterTextureLimit", get_masterTextureLimit, set_masterTextureLimit);
- L.RegVar("anisotropicFiltering", get_anisotropicFiltering, set_anisotropicFiltering);
- L.RegVar("width", get_width, set_width);
- L.RegVar("height", get_height, set_height);
- L.RegVar("dimension", get_dimension, set_dimension);
- L.RegVar("isReadable", get_isReadable, null);
- L.RegVar("wrapMode", get_wrapMode, set_wrapMode);
- L.RegVar("wrapModeU", get_wrapModeU, set_wrapModeU);
- L.RegVar("wrapModeV", get_wrapModeV, set_wrapModeV);
- L.RegVar("wrapModeW", get_wrapModeW, set_wrapModeW);
- L.RegVar("filterMode", get_filterMode, set_filterMode);
- L.RegVar("anisoLevel", get_anisoLevel, set_anisoLevel);
- L.RegVar("mipMapBias", get_mipMapBias, set_mipMapBias);
- L.RegVar("texelSize", get_texelSize, null);
- L.RegVar("updateCount", get_updateCount, null);
- L.RegVar("totalTextureMemory", get_totalTextureMemory, null);
- L.RegVar("desiredTextureMemory", get_desiredTextureMemory, null);
- L.RegVar("targetTextureMemory", get_targetTextureMemory, null);
- L.RegVar("currentTextureMemory", get_currentTextureMemory, null);
- L.RegVar("nonStreamingTextureMemory", get_nonStreamingTextureMemory, null);
- L.RegVar("streamingMipmapUploadCount", get_streamingMipmapUploadCount, null);
- L.RegVar("streamingRendererCount", get_streamingRendererCount, null);
- L.RegVar("streamingTextureCount", get_streamingTextureCount, null);
- L.RegVar("nonStreamingTextureCount", get_nonStreamingTextureCount, null);
- L.RegVar("streamingTexturePendingLoadCount", get_streamingTexturePendingLoadCount, null);
- L.RegVar("streamingTextureLoadingCount", get_streamingTextureLoadingCount, null);
- L.RegVar("streamingTextureForceLoadAll", get_streamingTextureForceLoadAll, set_streamingTextureForceLoadAll);
- L.RegVar("streamingTextureDiscardUnusedMips", get_streamingTextureDiscardUnusedMips, set_streamingTextureDiscardUnusedMips);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetGlobalAnisotropicFilteringLimits(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 1);
- int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Texture.SetGlobalAnisotropicFilteringLimits(arg0, arg1);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetNativeTexturePtr(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)ToLua.CheckObject(L, 1, typeof(UnityEngine.Texture));
- System.IntPtr o = obj.GetNativeTexturePtr();
- LuaDLL.lua_pushlightuserdata(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int IncrementUpdateCount(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)ToLua.CheckObject(L, 1, typeof(UnityEngine.Texture));
- obj.IncrementUpdateCount();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetStreamingTextureMaterialDebugProperties(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- UnityEngine.Texture.SetStreamingTextureMaterialDebugProperties();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int op_Equality(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
- UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
- bool o = arg0 == arg1;
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_masterTextureLimit(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushinteger(L, UnityEngine.Texture.masterTextureLimit);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_anisotropicFiltering(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Texture.anisotropicFiltering);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_width(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- int ret = obj.width;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_height(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- int ret = obj.height;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_dimension(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.Rendering.TextureDimension ret = obj.dimension;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dimension on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isReadable(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- bool ret = obj.isReadable;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isReadable on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_wrapMode(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode ret = obj.wrapMode;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapMode on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_wrapModeU(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode ret = obj.wrapModeU;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeU on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_wrapModeV(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode ret = obj.wrapModeV;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeV on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_wrapModeW(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode ret = obj.wrapModeW;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeW on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_filterMode(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.FilterMode ret = obj.filterMode;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index filterMode on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_anisoLevel(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- int ret = obj.anisoLevel;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index anisoLevel on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_mipMapBias(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- float ret = obj.mipMapBias;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mipMapBias on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_texelSize(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.Vector2 ret = obj.texelSize;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index texelSize on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_updateCount(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- uint ret = obj.updateCount;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index updateCount on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_totalTextureMemory(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.totalTextureMemory);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_desiredTextureMemory(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.desiredTextureMemory);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_targetTextureMemory(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.targetTextureMemory);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_currentTextureMemory(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.currentTextureMemory);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_nonStreamingTextureMemory(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureMemory);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingMipmapUploadCount(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingMipmapUploadCount);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingRendererCount(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingRendererCount);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingTextureCount(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingTextureCount);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_nonStreamingTextureCount(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.nonStreamingTextureCount);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingTexturePendingLoadCount(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingTexturePendingLoadCount);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingTextureLoadingCount(IntPtr L)
- {
- try
- {
- LuaDLL.tolua_pushuint64(L, UnityEngine.Texture.streamingTextureLoadingCount);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingTextureForceLoadAll(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Texture.streamingTextureForceLoadAll);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingTextureDiscardUnusedMips(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Texture.streamingTextureDiscardUnusedMips);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_masterTextureLimit(IntPtr L)
- {
- try
- {
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Texture.masterTextureLimit = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_anisotropicFiltering(IntPtr L)
- {
- try
- {
- UnityEngine.AnisotropicFiltering arg0 = (UnityEngine.AnisotropicFiltering)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnisotropicFiltering));
- UnityEngine.Texture.anisotropicFiltering = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_width(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.width = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index width on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_height(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.height = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index height on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_dimension(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.Rendering.TextureDimension arg0 = (UnityEngine.Rendering.TextureDimension)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.TextureDimension));
- obj.dimension = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index dimension on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_wrapMode(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
- obj.wrapMode = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapMode on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_wrapModeU(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
- obj.wrapModeU = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeU on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_wrapModeV(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
- obj.wrapModeV = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeV on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_wrapModeW(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.TextureWrapMode arg0 = (UnityEngine.TextureWrapMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TextureWrapMode));
- obj.wrapModeW = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index wrapModeW on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_filterMode(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- UnityEngine.FilterMode arg0 = (UnityEngine.FilterMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.FilterMode));
- obj.filterMode = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index filterMode on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_anisoLevel(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.anisoLevel = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index anisoLevel on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_mipMapBias(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Texture obj = (UnityEngine.Texture)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.mipMapBias = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index mipMapBias on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_streamingTextureForceLoadAll(IntPtr L)
- {
- try
- {
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- UnityEngine.Texture.streamingTextureForceLoadAll = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_streamingTextureDiscardUnusedMips(IntPtr L)
- {
- try
- {
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- UnityEngine.Texture.streamingTextureDiscardUnusedMips = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
-
|