List<Brush> Brushes

robot_2Generated
code_blocksInput

Description

The Brushes field is a public instance member of the BrushList class within the Editor.TerrainEditor namespace. It holds a list of Brush objects that can be used for terrain editing purposes. This list allows you to manage and access different brushes available for terrain manipulation.

Usage

To use the Brushes field, you need to create an instance of the BrushList class. Once you have an instance, you can access the Brushes field to retrieve or manipulate the list of brushes. This can be useful for iterating over available brushes, adding new brushes, or removing existing ones.

Example

// Create an instance of BrushList
BrushList brushList = new BrushList();

// Access the Brushes field
List<Editor.TerrainEditor.Brush> availableBrushes = brushList.Brushes;

// Iterate over the brushes
foreach (var brush in availableBrushes)
{
    // Perform operations with each brush
    Console.WriteLine(brush.Name);
}

// Add a new brush to the list
Editor.TerrainEditor.Brush newBrush = new Editor.TerrainEditor.Brush();
availableBrushes.Add(newBrush);

// Remove a brush from the list
availableBrushes.Remove(newBrush);