Editor UI settings class for a SubTerrain brush. Declares three editable properties (Size, Opacity, TargetHeight) with attributes for editor presentation and ranges; intended to allow larger brush sizes than the built-in terrain tool.
using Sandbox;
namespace Editor.SubTerrain;
/// <summary>
/// Brush settings for SubTerrain. Higher size cap than the built-in terrain tool.
/// </summary>
public class SubTerrainBrushSettings
{
[Property, Range( 8, 32000 ), Step( 1 ), WideMode]
public int Size { get; set; } = 2000;
[Property, Range( 0.0f, 1.0f ), Step( 0.01f ), WideMode]
public float Opacity { get; set; } = 0.5f;
/// <summary>
/// Absolute world height (Z) used by Set Height mode.
/// </summary>
[Property, WideMode]
public float TargetHeight { get; set; } = 0.0f;
}