The LoadAll
method is responsible for loading all available brushes into the BrushList
. This method populates the Brushes
field with instances of Brush
that can be used within the terrain editor.
The LoadAll
method is responsible for loading all available brushes into the BrushList
. This method populates the Brushes
field with instances of Brush
that can be used within the terrain editor.
Call the LoadAll
method when you need to initialize or refresh the list of brushes available in the terrain editor. This is typically done during the setup phase of the editor or when the list of brushes needs to be updated.
// Create an instance of BrushList BrushList brushList = new BrushList(); // Load all available brushes brushList.LoadAll(); // Access the loaded brushes foreach (var brush in brushList.Brushes) { // Use the brush // Example: Console.WriteLine(brush.Name); }