---
title: TerrainEditResult
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/terraineditresult
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/terraintools/terraineditresult.md
last_updated: 2026-10-20
generated_at: 2026-11-11T21:35:34.215Z
locale: en-us
---

# TerrainEditResult

> What TerrainEditUtility.SculptHeights or TerrainEditUtility.PaintLayers changed.

## Definition

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

```csharp
public readonly struct TerrainEditResult
```

## Properties

| Property                                                                                                   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [applied](/engine/7000.0/script-reference/unityeditor/terraintools/terraineditresult/applied.md)           | True when the edit was written. False when it changed nothing, in which case nothing was written and nothing was recorded for undo.                                                                                                                                                                                                                                                                                                                      |
| [changedCount](/engine/7000.0/script-reference/unityeditor/terraintools/terraineditresult/changedcount.md) | The number of samples whose stored height changed, or of texels where a layer weight changed by at least half of the alphamap's 8-bit storage step.                                                                                                                                                                                                                                                                                                      |
| [rect](/engine/7000.0/script-reference/unityeditor/terraintools/terraineditresult/rect.md)                 | The rectangle that the edit can change: heightmap samples for [TerrainEditUtility.SculptHeights](/engine/7000.0/script-reference/unityeditor/terraintools/terraineditutility/sculptheights.md), alphamap texels for [TerrainEditUtility.PaintLayers](/engine/7000.0/script-reference/unityeditor/terraintools/terraineditutility/paintlayers.md). It covers the region, widened to the cells it crosses, and the blend band. Nothing outside it changes. |
