|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class UnityEngine_TerrainWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(UnityEngine.Terrain), typeof(UnityEngine.Behaviour));
- L.RegFunction("GetClosestReflectionProbes", GetClosestReflectionProbes);
- L.RegFunction("SampleHeight", SampleHeight);
- L.RegFunction("ApplyDelayedHeightmapModification", ApplyDelayedHeightmapModification);
- L.RegFunction("AddTreeInstance", AddTreeInstance);
- L.RegFunction("SetNeighbors", SetNeighbors);
- L.RegFunction("GetPosition", GetPosition);
- L.RegFunction("Flush", Flush);
- L.RegFunction("SetSplatMaterialPropertyBlock", SetSplatMaterialPropertyBlock);
- L.RegFunction("GetSplatMaterialPropertyBlock", GetSplatMaterialPropertyBlock);
- L.RegFunction("SetConnectivityDirty", SetConnectivityDirty);
- L.RegFunction("CreateTerrainGameObject", CreateTerrainGameObject);
- L.RegFunction("New", _CreateUnityEngine_Terrain);
- L.RegFunction("__eq", op_Equality);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("terrainData", get_terrainData, set_terrainData);
- L.RegVar("treeDistance", get_treeDistance, set_treeDistance);
- L.RegVar("treeBillboardDistance", get_treeBillboardDistance, set_treeBillboardDistance);
- L.RegVar("treeCrossFadeLength", get_treeCrossFadeLength, set_treeCrossFadeLength);
- L.RegVar("treeMaximumFullLODCount", get_treeMaximumFullLODCount, set_treeMaximumFullLODCount);
- L.RegVar("detailObjectDistance", get_detailObjectDistance, set_detailObjectDistance);
- L.RegVar("detailObjectDensity", get_detailObjectDensity, set_detailObjectDensity);
- L.RegVar("heightmapPixelError", get_heightmapPixelError, set_heightmapPixelError);
- L.RegVar("heightmapMaximumLOD", get_heightmapMaximumLOD, set_heightmapMaximumLOD);
- L.RegVar("basemapDistance", get_basemapDistance, set_basemapDistance);
- L.RegVar("lightmapIndex", get_lightmapIndex, set_lightmapIndex);
- L.RegVar("realtimeLightmapIndex", get_realtimeLightmapIndex, set_realtimeLightmapIndex);
- L.RegVar("lightmapScaleOffset", get_lightmapScaleOffset, set_lightmapScaleOffset);
- L.RegVar("realtimeLightmapScaleOffset", get_realtimeLightmapScaleOffset, set_realtimeLightmapScaleOffset);
- L.RegVar("freeUnusedRenderingResources", get_freeUnusedRenderingResources, set_freeUnusedRenderingResources);
- L.RegVar("castShadows", get_castShadows, set_castShadows);
- L.RegVar("reflectionProbeUsage", get_reflectionProbeUsage, set_reflectionProbeUsage);
- L.RegVar("materialType", get_materialType, set_materialType);
- L.RegVar("materialTemplate", get_materialTemplate, set_materialTemplate);
- L.RegVar("legacySpecular", get_legacySpecular, set_legacySpecular);
- L.RegVar("legacyShininess", get_legacyShininess, set_legacyShininess);
- L.RegVar("drawHeightmap", get_drawHeightmap, set_drawHeightmap);
- L.RegVar("allowAutoConnect", get_allowAutoConnect, set_allowAutoConnect);
- L.RegVar("groupingID", get_groupingID, set_groupingID);
- L.RegVar("drawInstanced", get_drawInstanced, set_drawInstanced);
- L.RegVar("normalmapTexture", get_normalmapTexture, null);
- L.RegVar("drawTreesAndFoliage", get_drawTreesAndFoliage, set_drawTreesAndFoliage);
- L.RegVar("patchBoundsMultiplier", get_patchBoundsMultiplier, set_patchBoundsMultiplier);
- L.RegVar("treeLODBiasMultiplier", get_treeLODBiasMultiplier, set_treeLODBiasMultiplier);
- L.RegVar("collectDetailPatches", get_collectDetailPatches, set_collectDetailPatches);
- L.RegVar("editorRenderFlags", get_editorRenderFlags, set_editorRenderFlags);
- L.RegVar("preserveTreePrototypeLayers", get_preserveTreePrototypeLayers, set_preserveTreePrototypeLayers);
- L.RegVar("heightmapTextureFormat", get_heightmapTextureFormat, null);
- L.RegVar("heightmapRenderTextureFormat", get_heightmapRenderTextureFormat, null);
- L.RegVar("activeTerrain", get_activeTerrain, null);
- L.RegVar("activeTerrains", get_activeTerrains, null);
- L.RegVar("leftNeighbor", get_leftNeighbor, null);
- L.RegVar("rightNeighbor", get_rightNeighbor, null);
- L.RegVar("topNeighbor", get_topNeighbor, null);
- L.RegVar("bottomNeighbor", get_bottomNeighbor, null);
- L.EndClass();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateUnityEngine_Terrain(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
-
- if (count == 0)
- {
- UnityEngine.Terrain obj = new UnityEngine.Terrain();
- ToLua.Push(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Terrain.New");
- }
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetClosestReflectionProbes(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>));
- obj.GetClosestReflectionProbes(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SampleHeight(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- float o = obj.SampleHeight(arg0);
- LuaDLL.lua_pushnumber(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ApplyDelayedHeightmapModification(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- obj.ApplyDelayedHeightmapModification();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int AddTreeInstance(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- UnityEngine.TreeInstance arg0 = (UnityEngine.TreeInstance)ToLua.CheckObject(L, 2, typeof(UnityEngine.TreeInstance));
- obj.AddTreeInstance(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetNeighbors(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 5);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- UnityEngine.Terrain arg0 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Terrain));
- UnityEngine.Terrain arg1 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 3, typeof(UnityEngine.Terrain));
- UnityEngine.Terrain arg2 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 4, typeof(UnityEngine.Terrain));
- UnityEngine.Terrain arg3 = (UnityEngine.Terrain)ToLua.CheckUnityObject(L, 5, typeof(UnityEngine.Terrain));
- obj.SetNeighbors(arg0, arg1, arg2, arg3);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetPosition(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- UnityEngine.Vector3 o = obj.GetPosition();
- ToLua.Push(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Flush(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- obj.Flush();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetSplatMaterialPropertyBlock(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));
- obj.SetSplatMaterialPropertyBlock(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetSplatMaterialPropertyBlock(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)ToLua.CheckObject(L, 1, typeof(UnityEngine.Terrain));
- UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.CheckObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));
- obj.GetSplatMaterialPropertyBlock(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetConnectivityDirty(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- UnityEngine.Terrain.SetConnectivityDirty();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CreateTerrainGameObject(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.TerrainData arg0 = (UnityEngine.TerrainData)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.TerrainData));
- UnityEngine.GameObject o = UnityEngine.Terrain.CreateTerrainGameObject(arg0);
- ToLua.Push(L, o);
- return 1;
- }
- 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_terrainData(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.TerrainData ret = obj.terrainData;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index terrainData on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_treeDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.treeDistance;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_treeBillboardDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.treeBillboardDistance;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeBillboardDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_treeCrossFadeLength(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.treeCrossFadeLength;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeCrossFadeLength on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_treeMaximumFullLODCount(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int ret = obj.treeMaximumFullLODCount;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeMaximumFullLODCount on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_detailObjectDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.detailObjectDistance;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_detailObjectDensity(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.detailObjectDensity;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDensity on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_heightmapPixelError(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.heightmapPixelError;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapPixelError on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_heightmapMaximumLOD(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int ret = obj.heightmapMaximumLOD;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapMaximumLOD on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_basemapDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.basemapDistance;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index basemapDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_lightmapIndex(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int ret = obj.lightmapIndex;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapIndex on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_realtimeLightmapIndex(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int ret = obj.realtimeLightmapIndex;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapIndex on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_lightmapScaleOffset(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Vector4 ret = obj.lightmapScaleOffset;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapScaleOffset on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_realtimeLightmapScaleOffset(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Vector4 ret = obj.realtimeLightmapScaleOffset;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapScaleOffset on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_freeUnusedRenderingResources(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.freeUnusedRenderingResources;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index freeUnusedRenderingResources on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_castShadows(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.castShadows;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index castShadows on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_reflectionProbeUsage(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Rendering.ReflectionProbeUsage ret = obj.reflectionProbeUsage;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reflectionProbeUsage on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_materialType(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Terrain.MaterialType ret = obj.materialType;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialType on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_materialTemplate(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Material ret = obj.materialTemplate;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialTemplate on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_legacySpecular(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Color ret = obj.legacySpecular;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacySpecular on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_legacyShininess(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.legacyShininess;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacyShininess on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_drawHeightmap(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.drawHeightmap;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawHeightmap on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_allowAutoConnect(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.allowAutoConnect;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowAutoConnect on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_groupingID(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int ret = obj.groupingID;
- LuaDLL.lua_pushinteger(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index groupingID on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_drawInstanced(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.drawInstanced;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawInstanced on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_normalmapTexture(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.RenderTexture ret = obj.normalmapTexture;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normalmapTexture on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_drawTreesAndFoliage(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.drawTreesAndFoliage;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawTreesAndFoliage on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_patchBoundsMultiplier(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Vector3 ret = obj.patchBoundsMultiplier;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index patchBoundsMultiplier on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_treeLODBiasMultiplier(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float ret = obj.treeLODBiasMultiplier;
- LuaDLL.lua_pushnumber(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeLODBiasMultiplier on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_collectDetailPatches(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.collectDetailPatches;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index collectDetailPatches on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_editorRenderFlags(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.TerrainRenderFlags ret = obj.editorRenderFlags;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index editorRenderFlags on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_preserveTreePrototypeLayers(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool ret = obj.preserveTreePrototypeLayers;
- LuaDLL.lua_pushboolean(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index preserveTreePrototypeLayers on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_heightmapTextureFormat(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Terrain.heightmapTextureFormat);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_heightmapRenderTextureFormat(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Terrain.heightmapRenderTextureFormat);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_activeTerrain(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Terrain.activeTerrain);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_activeTerrains(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Terrain.activeTerrains);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_leftNeighbor(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Terrain ret = obj.leftNeighbor;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index leftNeighbor on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_rightNeighbor(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Terrain ret = obj.rightNeighbor;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rightNeighbor on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_topNeighbor(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Terrain ret = obj.topNeighbor;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index topNeighbor on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_bottomNeighbor(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Terrain ret = obj.bottomNeighbor;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bottomNeighbor on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_terrainData(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.TerrainData arg0 = (UnityEngine.TerrainData)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.TerrainData));
- obj.terrainData = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index terrainData on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_treeDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.treeDistance = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_treeBillboardDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.treeBillboardDistance = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeBillboardDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_treeCrossFadeLength(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.treeCrossFadeLength = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeCrossFadeLength on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_treeMaximumFullLODCount(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.treeMaximumFullLODCount = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeMaximumFullLODCount on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_detailObjectDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.detailObjectDistance = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_detailObjectDensity(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.detailObjectDensity = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index detailObjectDensity on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_heightmapPixelError(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.heightmapPixelError = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapPixelError on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_heightmapMaximumLOD(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.heightmapMaximumLOD = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index heightmapMaximumLOD on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_basemapDistance(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.basemapDistance = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index basemapDistance on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_lightmapIndex(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.lightmapIndex = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapIndex on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_realtimeLightmapIndex(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.realtimeLightmapIndex = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapIndex on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_lightmapScaleOffset(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
- obj.lightmapScaleOffset = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapScaleOffset on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_realtimeLightmapScaleOffset(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
- obj.realtimeLightmapScaleOffset = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapScaleOffset on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_freeUnusedRenderingResources(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.freeUnusedRenderingResources = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index freeUnusedRenderingResources on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_castShadows(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.castShadows = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index castShadows on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_reflectionProbeUsage(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Rendering.ReflectionProbeUsage arg0 = (UnityEngine.Rendering.ReflectionProbeUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.ReflectionProbeUsage));
- obj.reflectionProbeUsage = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reflectionProbeUsage on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_materialType(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Terrain.MaterialType arg0 = (UnityEngine.Terrain.MaterialType)ToLua.CheckObject(L, 2, typeof(UnityEngine.Terrain.MaterialType));
- obj.materialType = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialType on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_materialTemplate(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
- obj.materialTemplate = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materialTemplate on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_legacySpecular(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
- obj.legacySpecular = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacySpecular on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_legacyShininess(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.legacyShininess = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index legacyShininess on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_drawHeightmap(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.drawHeightmap = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawHeightmap on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_allowAutoConnect(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.allowAutoConnect = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowAutoConnect on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_groupingID(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- obj.groupingID = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index groupingID on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_drawInstanced(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.drawInstanced = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawInstanced on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_drawTreesAndFoliage(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.drawTreesAndFoliage = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index drawTreesAndFoliage on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_patchBoundsMultiplier(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
- obj.patchBoundsMultiplier = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index patchBoundsMultiplier on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_treeLODBiasMultiplier(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
- obj.treeLODBiasMultiplier = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index treeLODBiasMultiplier on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_collectDetailPatches(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.collectDetailPatches = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index collectDetailPatches on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_editorRenderFlags(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- UnityEngine.TerrainRenderFlags arg0 = (UnityEngine.TerrainRenderFlags)ToLua.CheckObject(L, 2, typeof(UnityEngine.TerrainRenderFlags));
- obj.editorRenderFlags = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index editorRenderFlags on a nil value" : e.Message);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_preserveTreePrototypeLayers(IntPtr L)
- {
- object o = null;
-
- try
- {
- o = ToLua.ToObject(L, 1);
- UnityEngine.Terrain obj = (UnityEngine.Terrain)o;
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- obj.preserveTreePrototypeLayers = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index preserveTreePrototypeLayers on a nil value" : e.Message);
- }
- }
- }
-
|