---
title: maxHeightmapResolution
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: current
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/terraindata/maxheightmapresolution
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/terraindata/maxheightmapresolution.md
last_updated: 2026-10-20
generated_at: 2026-11-03T22:15:17.401Z
locale: en-us
---

# maxHeightmapResolution

> The largest heightmap resolution. Setting TerrainData.heightmapResolution above it clamps the value to it and logs a warning.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TerrainModule

```csharp
public static int maxHeightmapResolution { get; }
```

### Remarks

The heightmap resolution is rounded up to a power of two plus one, so a small value gives the smallest supported resolution and there is no separate minimum.
