Version: 2022.3
LanguageEnglish
  • C#

IOnInspectorGUI.ShowBrushesGUI

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void ShowBrushesGUI(int spacing, TerrainTools.BrushGUIEditFlags flags, int textureResolutionPerTile);

Parameters

spacing Pixel spacing for the brush GUI controls.
flags 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.

Description

Displays the default controls for the brush in the tool inspector.

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