Game.Settings.SettingsUIButtonAttribute
Assembly: Game
Namespace: Game.Settings
Type: class
Base: System.Attribute
Summary:
An attribute used to mark classes, structs, or properties that should be treated as a UI button in the game's settings system. The attribute itself carries no data or behavior; it serves as a marker for reflection or tooling that builds the settings UI. The attribute usage allows application to classes, structs, and properties and is inheritable.
Fields
- None
No private or public fields are defined by this attribute.
Properties
- None
This attribute does not expose any custom properties; it only inherits members from System.Attribute.
Constructors
public SettingsUIButtonAttribute()
Default parameterless constructor. The attribute does not require any initialization data.
Methods
- None
No additional methods are declared; behavior is provided externally by code that inspects the presence of this attribute.
Usage Example
using Game.Settings;
[SettingsUIButton]
public class ResetToDefaultsButton
{
// Class can be discovered by settings UI builder and rendered as a button.
}
// Or applied to a settings property to render it as a button in the UI:
public class GraphicsSettings
{
[SettingsUIButton]
public object ResetQualityButton { get; set; }
}