---
title: flattenReference
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/terrainsculptsettings/flattenreference
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/terraintools/terrainsculptsettings/flattenreference.md
last_updated: 2026-10-20
generated_at: 2026-11-11T12:58:23.264Z
locale: en-us
---

# flattenReference

> For TerrainSculptOperation.Flatten: which height of the region to flatten to. The samples inside the region decide it, without the blend band and regardless of the falloff. TerrainFlattenReference.Mean by default.

## Definition

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

```csharp
public TerrainFlattenReference flattenReference { get; set; }
```
