ShowBrushesGUI(int, BrushGUIEditFlags, int)
Displays the default controls for the brush in the tool inspector.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEditor.TerrainTools
- Assembly: UnityEditor
void ShowBrushesGUI(int spacing = 5, BrushGUIEditFlags flags = BrushGUIEditFlags.All, int textureResolutionPerTile = 0)
Parameters
Pixel spacing for the brush GUI controls.
Specifies which brush controls to display in the Terrain tool UI.
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.