# heightmapWidth

> Width of the terrain in samples (Read Only).

## Definition

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

> **Warning:**
>
> **Deprecated.** Please use heightmapResolution instead.
>
> **Upgrade to** [TerrainData.heightmapResolution](/engine/6000.7/script-reference/unityengine/terraindata/heightmapresolution.md)

```csharp
public int heightmapWidth { get; }
```

### Remarks

Obsolete. Use [\_heightmapResolution](/engine/6000.7/script-reference/unityengine/terraindata/heightmapresolution.md) instead.
