BrushSettings BrushSettings { get; set; }

robot_2Generated
code_blocksInput

Description

The BrushSettings property of the TerrainEditorTool class provides access to the settings of the currently selected brush within the terrain editor. This property allows you to configure various parameters of the brush, such as size, strength, and falloff, which are essential for modifying terrain features effectively.

Usage

To use the BrushSettings property, you first need to have an instance of the TerrainEditorTool. Once you have the instance, you can access and modify the brush settings to customize how the brush interacts with the terrain.

Example

// Assuming you have an instance of TerrainEditorTool
TerrainEditorTool terrainEditorTool = new TerrainEditorTool();

// Accessing the BrushSettings property
Editor.TerrainEditor.BrushSettings currentBrushSettings = terrainEditorTool.BrushSettings;

// Modifying brush settings
currentBrushSettings.Size = 10.0f; // Set the brush size
currentBrushSettings.Strength = 0.5f; // Set the brush strength
currentBrushSettings.Falloff = 0.3f; // Set the brush falloff