Class Terrain
Assembly: UnityEngine.dll
Syntax
public sealed class Terrain : Behaviour
Properties
activeTerrain
Declaration
public static Terrain activeTerrain { get; }
Property Value
activeTerrains
Declaration
public static Terrain[] activeTerrains { get; }
Property Value
allowAutoConnect
Declaration
public bool allowAutoConnect { get; set; }
Property Value
bakeLightProbesForTrees
Declaration
public bool bakeLightProbesForTrees { get; set; }
Property Value
basemapDistance
Declaration
public float basemapDistance { get; set; }
Property Value
bottomNeighbor
Declaration
public Terrain bottomNeighbor { get; }
Property Value
castShadows
Declaration
public bool castShadows { get; set; }
Property Value
collectDetailPatches
Declaration
public bool collectDetailPatches { get; set; }
Property Value
deringLightProbesForTrees
Declaration
public bool deringLightProbesForTrees { get; set; }
Property Value
detailObjectDensity
Declaration
public float detailObjectDensity { get; set; }
Property Value
detailObjectDistance
Declaration
public float detailObjectDistance { get; set; }
Property Value
drawHeightmap
Declaration
public bool drawHeightmap { get; set; }
Property Value
drawInstanced
Declaration
public bool drawInstanced { get; set; }
Property Value
drawTreesAndFoliage
Declaration
public bool drawTreesAndFoliage { get; set; }
Property Value
editorRenderFlags
Declaration
public TerrainRenderFlags editorRenderFlags { get; set; }
Property Value
freeUnusedRenderingResources
Declaration
public bool freeUnusedRenderingResources { get; set; }
Property Value
groupingID
Declaration
public int groupingID { get; set; }
Property Value
heightmapMaximumLOD
Declaration
public int heightmapMaximumLOD { get; set; }
Property Value
heightmapPixelError
Declaration
public float heightmapPixelError { get; set; }
Property Value
heightmapRenderTextureFormat
Declaration
public static RenderTextureFormat heightmapRenderTextureFormat { get; }
Property Value
heightmapTextureFormat
Declaration
public static TextureFormat heightmapTextureFormat { get; }
Property Value
leftNeighbor
Declaration
public Terrain leftNeighbor { get; }
Property Value
legacyShininess
Declaration
public float legacyShininess { get; set; }
Property Value
legacySpecular
Declaration
public Color legacySpecular { get; set; }
Property Value
lightmapIndex
Declaration
public int lightmapIndex { get; set; }
Property Value
lightmapScaleOffset
Declaration
public Vector4 lightmapScaleOffset { get; set; }
Property Value
materialTemplate
Declaration
public Material materialTemplate { get; set; }
Property Value
materialType
Declaration
public Terrain.MaterialType materialType { get; set; }
Property Value
normalmapTexture
Declaration
public RenderTexture normalmapTexture { get; }
Property Value
patchBoundsMultiplier
Declaration
public Vector3 patchBoundsMultiplier { get; set; }
Property Value
preserveTreePrototypeLayers
Declaration
public bool preserveTreePrototypeLayers { get; set; }
Property Value
realtimeLightmapIndex
Declaration
public int realtimeLightmapIndex { get; set; }
Property Value
realtimeLightmapScaleOffset
Declaration
public Vector4 realtimeLightmapScaleOffset { get; set; }
Property Value
reflectionProbeUsage
Declaration
public ReflectionProbeUsage reflectionProbeUsage { get; set; }
Property Value
rightNeighbor
Declaration
public Terrain rightNeighbor { get; }
Property Value
terrainData
Declaration
public TerrainData terrainData { get; set; }
Property Value
topNeighbor
Declaration
public Terrain topNeighbor { get; }
Property Value
treeBillboardDistance
Declaration
public float treeBillboardDistance { get; set; }
Property Value
treeCrossFadeLength
Declaration
public float treeCrossFadeLength { get; set; }
Property Value
treeDistance
Declaration
public float treeDistance { get; set; }
Property Value
treeLODBiasMultiplier
Declaration
public float treeLODBiasMultiplier { get; set; }
Property Value
treeMaximumFullLODCount
Declaration
public int treeMaximumFullLODCount { get; set; }
Property Value
Methods
AddTreeInstance(TreeInstance)
Declaration
public void AddTreeInstance(TreeInstance instance)
Parameters
ApplyDelayedHeightmapModification()
Declaration
public void ApplyDelayedHeightmapModification()
CreateTerrainGameObject(TerrainData)
Declaration
public static GameObject CreateTerrainGameObject(TerrainData assignTerrain)
Parameters
Returns
Flush()
Declaration
GetClosestReflectionProbes(List<ReflectionProbeBlendInfo>)
Declaration
public void GetClosestReflectionProbes(List<ReflectionProbeBlendInfo> result)
Parameters
GetPosition()
Declaration
public Vector3 GetPosition()
Returns
|
Improve this Doc
View Source
GetSplatMaterialPropertyBlock(MaterialPropertyBlock)
Declaration
public void GetSplatMaterialPropertyBlock(MaterialPropertyBlock dest)
Parameters
SampleHeight(Vector3)
Declaration
public float SampleHeight(Vector3 worldPosition)
Parameters
Type |
Name |
Description |
Vector3 |
worldPosition |
|
Returns
SetConnectivityDirty()
Declaration
public static void SetConnectivityDirty()
SetNeighbors(Terrain, Terrain, Terrain, Terrain)
Declaration
public void SetNeighbors(Terrain left, Terrain top, Terrain right, Terrain bottom)
Parameters
SetSplatMaterialPropertyBlock(MaterialPropertyBlock)
Declaration
public void SetSplatMaterialPropertyBlock(MaterialPropertyBlock properties)
Parameters
Extension Methods