---
title: TerrainRegion
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/unityeditor/terraintools/terrainregion
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion.md
last_updated: 2026-10-20
generated_at: 2026-11-11T16:43:08.994Z
locale: en-us
---

# TerrainRegion

> An area of a Terrain that TerrainEditUtility edits or measures.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.TerrainTools](/engine/7000.0/script-reference/unityeditor/terraintools.md)
* **Assembly:** UnityEditor

```csharp
public sealed class TerrainRegion
```

## Remarks

Positions are in meters on the X and Z axes of the Terrain's local space: (0, 0) is the corner at the Terrain's position and ([TerrainData.size](/engine/7000.0/script-reference/unityengine/terraindata/size.md).x, [TerrainData.size](/engine/7000.0/script-reference/unityengine/terraindata/size.md).z) is the opposite corner. [Vector2.y](/engine/7000.0/script-reference/unityengine/vector2/y.md) and [Rect.y](/engine/7000.0/script-reference/unityengine/rect/y.md) hold the Z coordinate. A region can extend past the Terrain; only the part on the Terrain is used.

A region is immutable. Create one with [TerrainRegion.Rectangle](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/rectangle.md), [TerrainRegion.Circle](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/circle.md), [TerrainRegion.Path](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/path.md) or [TerrainRegion.Intersect](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/intersect.md), or use [TerrainRegion.whole](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/whole.md).

## Static Properties

| Property                                                                                 | Description        |
| ---------------------------------------------------------------------------------------- | ------------------ |
| [whole](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/whole.md) | The whole Terrain. |

## Methods

| Method                                                                                           | Description                                                     |
| ------------------------------------------------------------------------------------------------ | --------------------------------------------------------------- |
| [Contains](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/contains.md)   | Checks whether a position lies inside the region.               |
| [GetWeight](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/getweight.md) | Gets how strongly an edit of this region applies at a position. |

## Static Methods

| Method                                                                                           | Description                                                                      |
| ------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| [Circle](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/circle.md)       | Creates a disc-shaped region.                                                    |
| [Intersect](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/intersect.md) | Creates the region where two regions overlap.                                    |
| [Path](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/path.md)           | Creates a corridor of a given width along a polyline, such as a road or a river. |
| [Rectangle](/engine/7000.0/script-reference/unityeditor/terraintools/terrainregion/rectangle.md) | Creates a rectangular region.                                                    |
