Navigation
Unreal Engine C++ API Reference > Runtime > Core > HAL
Inheritance Hierarchy
- IConsoleObject
- IConsoleVariable
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/HAL/IConsoleManager.h |
Include | #include "HAL/IConsoleManager.h" |
Syntax
class IConsoleVariable : public IConsoleObject
Remarks
Interface for console variables
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | GetBool () |
Get the internal value as a bool, works on bools, ints and floats. |
![]() |
FString | Get the value this CVar was constructed with | |
![]() ![]() |
IConsoleVariable * | Get the saved off default value, in a cvar variable, if one was created | |
![]() ![]() |
float | GetFloat () |
Get the internal value as float (works on all types). |
![]() |
SIZE_T | Track memory used by history data | |
![]() ![]() |
int32 | GetInt () |
Get the internal value as int (should not be used on strings). |
![]() ![]() |
FString | GetString () |
Get the internal value as string (works on all types). |
![]() |
void | ||
![]() |
void | GetValue
(
float& OutFloatValue |
|
![]() |
void | GetValue
(
bool& OutBoolValue |
|
![]() |
void | Generic versions for templated code | |
![]() |
void | LogHistory
(
FOutputDevice& Ar |
Print the history to a log |
![]() |
FConsoleVariableMulticastDelegate & | ||
![]() |
void | Set
(
const TCHAR* InValue, |
Set the internal value from the specified string. |
![]() |
void | Set
(
bool InValue, |
Set the internal value from the specified bool. |
![]() |
void | Set
(
int32 InValue, |
Set the internal value from the specified int. |
![]() |
void | Set
(
float InValue, |
Set the internal value from the specified float. |
![]() |
void | SetOnChangedCallback
(
const FConsoleVariableDelegate& Callback |
Allows to specify a callback function that is called when the console variable value changes. |
![]() |
void | SetWithCurrentPriority
(
float InValue, |
|
![]() |
void | SetWithCurrentPriority
(
bool InValue, |
|
![]() |
void | SetWithCurrentPriority
(
int32 InValue, |
|
![]() |
void | SetWithCurrentPriority
(
const TCHAR* InValue, |
|
![]() |
void | Unset
(
EConsoleVariableFlags SetBy, |
Unsets the value at a certain SetBy priority (this is only useful when UE_ALLOW_CVAR_HISTORY is set). |