Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ShowBrushesGUI(int, BrushGUIEditFlags, int)

Displays the default controls for the brush in the tool inspector.
Read time 1 minuteLast updated 10 days ago

Definition

void ShowBrushesGUI(int spacing = 5, BrushGUIEditFlags flags = BrushGUIEditFlags.All, int textureResolutionPerTile = 0)

Parameters

spacing

Pixel spacing for the brush GUI controls.

Specifies which brush controls to display in the Terrain tool UI.

textureResolutionPerTile

The resolution per Terrain tile of the Texture, which the tool is editing. Unity uses this value to calculate Brush size limits.

Remarks

If the tool is editing multiple Textures on a Terrain, textureResolutionPerTile is the largest resolution among them. Additional Resources: IOnPaint.brushSize and IOnPaint.brushStrength.