Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

UnityEngine.TerrainModule

Description

The Terrain module implements Unity's Terrain rendering engine available through the Terrain component.

Classes

DetailPrototypeDetail prototype used by the Terrain GameObject.
SplatPrototypeA Splat prototype is just a texture that is used by the TerrainData.
TerrainThe Terrain component renders the terrain.
TerrainDataThe TerrainData class stores heightmaps, detail mesh positions, tree instances, and terrain texture alpha maps.
TerrainExtensionsExtension methods to the Terrain class, used only for the UpdateGIMaterials method used by the Global Illumination System.
TreeTree Component for the tree creator.
TreePrototypeSimple class that contains a pointer to a tree prototype.

Structs

TreeInstanceContains information about a tree placed in the Terrain game object.

Enumerations

DetailRenderModeRender mode for detail prototypes.
TerrainChangedFlagsIndicate the types of changes to the terrain in OnTerrainChanged callback.
TerrainRenderFlagsEnum provding terrain rendering options.

Did you find this page useful? Please give it a rating: