ドキュメント

Unity Engine

Unity Engine

ShowBrushesGUI(int, BrushGUIEditFlags, int)

Displays the default controls for the brush in the tool inspector.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.