Navigation
API > API/Runtime > API/Runtime/Core
Currently only supports main and render thread optimized for read access speed (no virtual function call and no thread handling if using the right functions) T: int32, float
| Name | TConsoleVariableData |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/IConsoleManager.h |
| Include Path | #include "HAL/IConsoleManager.h" |
Syntax
template<class T>
class TConsoleVariableData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TConsoleVariableData
(
const T DefaultValue |
Constructor | HAL/IConsoleManager.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ShadowedValue | T | [0]:main thread, [1]: render thread, having them both in the same cache line should only hurt on write which happens rarely for cvars | HAL/IConsoleManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T GetValueOnAnyThread
(
bool bForceGameThread |
Convenient, for better performance consider using GetValueOnGameThread() or GetValueOnRenderThread() | HAL/IConsoleManager.h | |
T GetValueOnGameThread() |
Faster than GetValueOnAnyThread() | HAL/IConsoleManager.h | |
T GetValueOnRenderThread() |
Faster than GetValueOnAnyThread() | HAL/IConsoleManager.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static uint32 GetShadowIndex
(
bool bForceGameThread |
HAL/IConsoleManager.h |