BrushSettings BrushSettings { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The BrushSettings property of the TerrainEditorTool class provides access to the settings that define the behavior and characteristics of the brush used in terrain editing. This property allows you to configure various parameters such as size, strength, and falloff of the brush, which are essential for precise terrain modification.

Usage

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

Example

// Assuming 'terrainEditorTool' is an instance of TerrainEditorTool
var brushSettings = terrainEditorTool.BrushSettings;

// Example: Set the brush size
brushSettings.Size = 10.0f;

// Example: Set the brush strength
brushSettings.Strength = 0.5f;

// Example: Set the brush falloff
brushSettings.Falloff = 0.3f;

// Apply the modified settings
terrainEditorTool.BrushSettings = brushSettings;