Skip to main content
Version: 2.x

Console Variables

Console variables are named Unreal Engine values that can be changed from config, console commands, C++, Blueprint, or settings UI. Auto Settings can bind settings to console variables through the Console Variable Binding Strategy.

Console variable sources

Each page matches the source that defines the console variable.

SourcePage
Blueprint-authored console variablesBlueprint console variables
C++-authored console variablesC++ console variables
Built-in Unreal Engine console variablesBuilt-in engine console variables

Test console variables

Press ~ (tilde) to open the console and test any console variable by name:

game.MasterVolume              // Show current value
game.MasterVolume 0.5 // Set new value
game.MasterVolume ? // Show help text

Configure per-device values

Use Unreal Device Profiles when console variable defaults should differ by device or hardware class.

Bind console variables to Auto Settings

After a console variable exists, every source binds the same way. Create or reuse a Setting Type with a Console Variable Binding Strategy, then point the setting widget at the console variable name.

The console variable must exist before Auto Settings validates or reads it. If no Setting Type default or saved value exists, Auto Settings can use the console variable's current value as the setting default. Saved Auto Settings values take priority after the user changes and saves a setting.