---
title: slopeRange
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/terrainlayerpaintrule/sloperange
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/terraintools/terrainlayerpaintrule/sloperange.md
last_updated: 2026-10-20
generated_at: 2026-11-12T20:36:53.167Z
locale: en-us
---

# slopeRange

> Paint only where the slope, in degrees, lies within [x, y]. [0, 90] by default.

## Definition

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

```csharp
public Vector2 slopeRange { get; set; }
```

### Remarks

The slope is the angle of the height gradient, estimated from the heights one heightmap cell away on each side (one-sided at the edges of the Terrain). At a heightmap sample this is the central difference of its neighbors.
