Navigation
API > API/Runtime > API/Runtime/Core
A class that can be used to deprecate a CVar - rename your existing CVar to the new name, then create a shadow of it with the old name with something like this:
FAutoConsoleVariableDeprecated ShadowCVar(TEXT("r.oldname"), TEXT("r.newname"), TEXT("5.5")); FAutoConsoleVariableDeprecated ShadowCVar(TEXT("r.oldname"), TEXT("r.newname"), TEXT("5.5"), EShadowCVarBehavior::Assert);
| Name | FAutoConsoleVariableDeprecated |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/IConsoleManager.h |
| Include Path | #include "HAL/IConsoleManager.h" |
Syntax
class FAutoConsoleVariableDeprecated
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAutoConsoleVariableDeprecated
(
const TCHAR* Name, |
HAL/IConsoleManager.h |