Navigation
API > API/Runtime > API/Runtime/Core > API/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. | |
| 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). | |
| 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
(
bool& OutBoolValue |
||
| void | GetValue
(
float& OutFloatValue |
||
| void | GetValue
(
int32& OutIntValue |
Generic versions for templated code | |
| 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 |