![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <IConsoleManager.h>
Public Member Functions | |
| CORE_API | FAutoConsoleVariableShadow (const TCHAR *Name, const TCHAR *CVarToShadow, EShadowCVarBehavior LookupFailureBehavior=EShadowCVarBehavior::Ensure) |
A class that can be used to shadow (alias) a CVar, where both names are valid to use. To deprecate a CVar, use FAutoConsoleVariableDeprecated. To deprecate a CCmd, use FAutoConsoleCommandDeprecated.
FAutoConsoleVariableShadow ShadowCVar(TEXT("r.oldname"), TEXT("r.newname"));
| FAutoConsoleVariableShadow::FAutoConsoleVariableShadow | ( | const TCHAR * | Name, |
| const TCHAR * | CVarToShadow, | ||
| EShadowCVarBehavior | LookupFailureBehavior = EShadowCVarBehavior::Ensure |
||
| ) |
| Name | The name of this cvar |
| CVarToShadow | The name of the existing cvar that this one will shadow |
| LookupFailureBehavior | How to handle failure of looking up the CVarToShadow name - defaults to ensure |