class
ConfigVariable
Base class for all configuration variables.
Provides common interface for registration, serialization, and metadata access.
Public
Constructors
ConfigVariable
Methods
~ConfigVariable
GetName
Returns the name of this configuration variable.
GetDescription
Returns the description of this configuration variable.
GetSource
Returns the source from which the current value was set.
GetFlags
Returns the flags controlling this variable's behavior.
IsReadOnly
Returns true if this variable cannot be modified at runtime.
IsRenderThreadSafe
Returns true if this variable defers updates to frame boundaries.
GetValueAsString
Returns the current value formatted as a string.
GetDefaultValueAsString
Returns the default value formatted as a string.
GetTypeName
Returns the type name of this variable (e.g., "bool", "i32").
Protected
Methods
ApplyPendingUpdate
Called by ConfigVariableManager to apply any pending deferred updates.
SetFromString
Sets the value from a string representation.
- value
- The string value to parse.
- source
- The source of this value (for priority handling).
Returns: True if the value was successfully set, false otherwise.
MarkInitialized
Marks this variable as initialized (enables ReadOnly enforcement).