# GetBrushXYBounds()

> Get the axis-aligned bounding rectangle of the brush, in target XY space.

## Definition

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

```csharp
public Rect GetBrushXYBounds()
```

### Returns

| Type                                                        | Description                            |
| ----------------------------------------------------------- | -------------------------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | Bounding rectangle in target XY space. |
