UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAutoConsoleVariableShadow Class Reference

#include <IConsoleManager.h>

Public Member Functions

CORE_API FAutoConsoleVariableShadow (const TCHAR *Name, const TCHAR *CVarToShadow, EShadowCVarBehavior LookupFailureBehavior=EShadowCVarBehavior::Ensure)
 

Detailed Description

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"));

Constructor & Destructor Documentation

◆ FAutoConsoleVariableShadow()

FAutoConsoleVariableShadow::FAutoConsoleVariableShadow ( const TCHAR Name,
const TCHAR CVarToShadow,
EShadowCVarBehavior  LookupFailureBehavior = EShadowCVarBehavior::Ensure 
)
Parameters
NameThe name of this cvar
CVarToShadowThe name of the existing cvar that this one will shadow
LookupFailureBehaviorHow to handle failure of looking up the CVarToShadow name - defaults to ensure

The documentation for this class was generated from the following files: