# GetBrushWorldSizeLimits(out float, out float, float, int, int, int)

> Calculates the minimum and maximum Brush size limits, in world space.

## Definition

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

## GetBrushWorldSizeLimits(float, float, float, int, int, int)

```csharp
public static void GetBrushWorldSizeLimits(out float minBrushWorldSize, out float maxBrushWorldSize, float terrainTileWorldSize, int terrainTileTextureResolutionPixels, int minBrushResolutionPixels = 1, int maxBrushResolutionPixels = 8192)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Returns the minimum Brush size, in world space units.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Returns the maximum Brush size, in world space units.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The size of a Terrain tile, in world space units.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The resolution of the Terrain tile texture the Brush edits, in pixels.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The minimum Brush resolution, in pixels.  Default is 1 pixel.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The maximum Brush resolution, in pixels.  Default is 8192 pixels.

### Remarks

Converts the minimum and maximum Brush pixel resolutions into the equivalent world space sizes.
