set_console_variable
Change any Unreal Engine console variable's value at runtime with priority matching user-typed console commands. Supports string, number, or boolean values and rejects read-only variables with clear error feedback.
Instructions
Mutate a UE Console Variable by name. 'value' is polymorphic: string, number, or bool. Issues the change at ECVF_SetByConsole priority (matches user-typed-in-console semantics) so it overrides ini files and code-set values. Pre-rejects ECVF_ReadOnly CVars (those silently no-op after early init) with a clear error, and post-verifies the change landed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact CVar name, case-sensitive. | |
| value | Yes | New value. Numbers and bools are coerced to canonical string form before being passed to IConsoleVariable::Set, which parses against the CVar's declared type. |