ShowBrushesGUI(int, BrushGUIEditFlags, int)
Displays the default controls for the brush in the tool inspector.
읽는 시간 1분최근 업데이트: 한 달 전
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.