Experimental: this API is experimental and might be changed or removed in the future.

IOnInspectorGUI.ShowBrushesGUI

Switch to Manual
public void ShowBrushesGUI (int spacing);
public void ShowBrushesGUI (int spacing, Experimental.TerrainAPI.BrushGUIEditFlags flags);
public void ShowBrushesGUI (int spacing, Experimental.TerrainAPI.BrushGUIEditFlags flags, int textureResolutionPerTile);

Parameters

spacingPixel spacing for the brush GUI controls.
flagsSpecifies which brush controls to display in the Terrain tool UI.
textureResolutionPerTileThe 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. See Also: IOnPaint.brushSize and IOnPaint.brushStrength.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961