---
title: UnityEngine.TerrainModule
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-terrainmodule
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/modules/unityengine-terrainmodule.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:47:34.213Z
locale: en-us
---

# UnityEngine.TerrainModule

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

## Definition

* **Type:** Module

## Classes

| Class                                                                                                  | Description                                                                                                                |
| ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------- |
| [DetailPrototype](/engine/7000.0/script-reference/unityengine/detailprototype.md)                      | Detail prototype used by the Terrain GameObject.                                                                           |
| [PaintContext](/engine/7000.0/script-reference/unityengine/terraintools/paintcontext.md)               | The context for a paint operation that may span multiple connected Terrain tiles.                                          |
| [Terrain](/engine/7000.0/script-reference/unityengine/terrain.md)                                      | The Terrain component renders the terrain.                                                                                 |
| [TerrainCallbacks](/engine/7000.0/script-reference/unityengine/terraincallbacks.md)                    | This static class provides events that Unity triggers when Terrain data changes.                                           |
| [TerrainData](/engine/7000.0/script-reference/unityengine/terraindata.md)                              | The TerrainData class stores heightmaps, detail mesh positions, tree instances, and terrain texture alpha maps.            |
| [TerrainExtensions](/engine/7000.0/script-reference/unityengine/terrainextensions.md)                  | Extension methods to the Terrain class, used only for the UpdateGIMaterials method used by the Global Illumination System. |
| [TerrainLayer](/engine/7000.0/script-reference/unityengine/terrainlayer.md)                            | Description of a terrain layer.                                                                                            |
| [TerrainMap](/engine/7000.0/script-reference/unityengine/terrainutils/terrainmap.md)                   | Type for mapping 2D (X,Z) tile coordinates to a [Terrain](/engine/7000.0/script-reference/unityengine/terrain.md) object.  |
| [TerrainPaintUtility](/engine/7000.0/script-reference/unityengine/terraintools/terrainpaintutility.md) | A set of utility functions for custom terrain paint tools.                                                                 |
| [TerrainUtility](/engine/7000.0/script-reference/unityengine/terrainutils/terrainutility.md)           | Provides a set of utility functions that are used by the terrain tools.                                                    |
| [Tree](/engine/7000.0/script-reference/unityengine/tree.md)                                            | Tree Component for the tree creator.                                                                                       |
| [TreePrototype](/engine/7000.0/script-reference/unityengine/treeprototype.md)                          | Simple class that contains a pointer to a tree prototype.                                                                  |

## Structs

| Struct                                                                                            | Description                                                                                                                          |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [BrushTransform](/engine/7000.0/script-reference/unityengine/terraintools/brushtransform.md)      | Represents a linear 2D transformation between brush UV space and a target XY space (typically this is a Terrain-local object space.) |
| [DetailInstanceTransform](/engine/7000.0/script-reference/unityengine/detailinstancetransform.md) | Describes the transform of a Terrain detail object.                                                                                  |
| [PatchExtents](/engine/7000.0/script-reference/unityengine/patchextents.md)                       | Structure containing minimum and maximum terrain patch height values.                                                                |
| [TerrainTileCoord](/engine/7000.0/script-reference/unityengine/terrainutils/terraintilecoord.md)  | Specifies a set of 2D tile coordinates.                                                                                              |
| [TreeInstance](/engine/7000.0/script-reference/unityengine/treeinstance.md)                       | Contains information about a tree placed in the Terrain game object.                                                                 |

## Enums

| Enum                                                                                                                               | Description                                                                                                                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [DetailRenderMode](/engine/7000.0/script-reference/unityengine/detailrendermode.md)                                                | Render mode for detail prototypes.                                                                                                                                                                                                                                                     |
| [DetailScatterMode](/engine/7000.0/script-reference/unityengine/detailscattermode.md)                                              | Provides options to specify how details are scattered on the terrain.                                                                                                                                                                                                                  |
| [TerrainBuiltinPaintMaterialPasses](/engine/7000.0/script-reference/unityengine/terraintools/terrainbuiltinpaintmaterialpasses.md) | Built-in render passes for paint material.                                                                                                                                                                                                                                             |
| [TerrainChangedFlags](/engine/7000.0/script-reference/unityengine/terrainchangedflags.md)                                          | Indicate the types of changes to the terrain in OnTerrainChanged callback.                                                                                                                                                                                                             |
| [TerrainHeightmapSyncControl](/engine/7000.0/script-reference/unityengine/terrainheightmapsynccontrol.md)                          | Controls what Terrain heightmap data to synchronize when there are changes to the heightmap texture.                                                                                                                                                                                   |
| [TerrainLayerSmoothnessSource](/engine/7000.0/script-reference/unityengine/terrainlayersmoothnesssource.md)                        | Source of smoothness value used in the underlying splat material of a [TerrainLayer](/engine/7000.0/script-reference/unityengine/terrainlayer.md) when [TerrainLayer.diffuseTexture](/engine/7000.0/script-reference/unityengine/terrainlayer/diffusetexture.md) has an alpha channel. |
| [TerrainRenderFlags](/engine/7000.0/script-reference/unityengine/terrainrenderflags.md)                                            | Enum provding terrain rendering options.                                                                                                                                                                                                                                               |
| [TreeMotionVectorModeOverride](/engine/7000.0/script-reference/unityengine/treemotionvectormodeoverride.md)                        | Options for motion vector rendering on the terrain.                                                                                                                                                                                                                                    |
