Documentation

Unity Engine

Download Unity

Unity Engine

UnityEngine.TerrainModule

The Terrain module implements Unity's Terrain rendering engine available through the Terrain component.
Read time 2 minutesLast updated 3 hours ago

Definition

  • Type: Module

Classes

Class

Description

DetailPrototypeDetail prototype used by the Terrain GameObject.
PaintContextThe context for a paint operation that may span multiple connected Terrain tiles.
TerrainThe Terrain component renders the terrain.
TerrainCallbacksThis static class provides events that Unity triggers when Terrain data changes.
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.
TerrainLayerDescription of a terrain layer.
TerrainMapType for mapping 2D (X,Z) tile coordinates to a Terrain object.
TerrainPaintUtilityA set of utility functions for custom terrain paint tools.
TerrainUtilityProvides a set of utility functions that are used by the terrain tools.
TreeTree Component for the tree creator.
TreePrototypeSimple class that contains a pointer to a tree prototype.

Structs

Struct

Description

BrushTransformRepresents a linear 2D transformation between brush UV space and a target XY space (typically this is a Terrain-local object space.)
DetailInstanceTransformDescribes the transform of a Terrain detail object.
PatchExtentsStructure containing minimum and maximum terrain patch height values.
TerrainTileCoordSpecifies a set of 2D tile coordinates.
TreeInstanceContains information about a tree placed in the Terrain game object.

Enums

Enum

Description

DetailRenderModeRender mode for detail prototypes.
DetailScatterModeProvides options to specify how details are scattered on the terrain.
TerrainBuiltinPaintMaterialPassesBuilt-in render passes for paint material.
TerrainChangedFlagsIndicate the types of changes to the terrain in OnTerrainChanged callback.
TerrainHeightmapSyncControlControls what Terrain heightmap data to synchronize when there are changes to the heightmap texture.
TerrainLayerSmoothnessSourceSource of smoothness value used in the underlying splat material of a TerrainLayer when TerrainLayer.diffuseTexture has an alpha channel.
TerrainRenderFlagsEnum provding terrain rendering options.
TreeMotionVectorModeOverrideOptions for motion vector rendering on the terrain.