Navigation
API > API/Runtime > API/Runtime/Core
Handles console commands and variables, registered console variables are released on destruction
| Name | IConsoleManager |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/HAL/IConsoleManager.h |
| Include Path | #include "HAL/IConsoleManager.h" |
Syntax
struct IConsoleManager
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~IConsoleManager() |
HAL/IConsoleManager.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Singleton | IConsoleManager * | Singleton for the console manager | HAL/IConsoleManager.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddConsoleHistoryEntry
(
const TCHAR* Key, |
HAL/IConsoleManager.h | ||
| Add, replace, or remove cvars to match the passed in cvars | HAL/IConsoleManager.h | ||
void CallAllConsoleVariableSinks () |
The sinks are only called if a change has been done since the last time Should be called in very few points: | HAL/IConsoleManager.h | |
IConsoleObject * FindConsoleObject
(
const TCHAR* Name, |
Find a console variable or command | HAL/IConsoleManager.h | |
FString FindConsoleObjectName
(
const IConsoleObject* Obj |
Lookup the name of a console object by its pointer | HAL/IConsoleManager.h | |
IConsoleVariable * FindConsoleVariable
(
const TCHAR* Name, |
Find a console variable | HAL/IConsoleManager.h | |
TConsoleVariableData< bool > * FindTConsoleVariableDataBool
(
const TCHAR* Name |
Find a typed console variable (faster access to the value, no virtual function call) | HAL/IConsoleManager.h | |
TConsoleVariableData< float > * FindTConsoleVariableDataFloat
(
const TCHAR* Name |
Find a typed console variable (faster access to the value, no virtual function call) | HAL/IConsoleManager.h | |
TConsoleVariableData< int32 > * FindTConsoleVariableDataInt
(
const TCHAR* Name |
Find a typed console variable (faster access to the value, no virtual function call) | HAL/IConsoleManager.h | |
void ForEachConsoleObjectThatContains
(
const FConsoleObjectVisitor& Visitor, |
Not case sensitive, does not guarantee that UnregisterConsoleObject() will work in the loop | HAL/IConsoleManager.h | |
void ForEachConsoleObjectThatStartsWith
(
const FConsoleObjectVisitor& Visitor, |
Iterate in O(n), not case sensitive, does not guarantee that UnregisterConsoleObject() will work in the loop | HAL/IConsoleManager.h | |
| HAL/IConsoleManager.h | |||
bool IsNameRegistered
(
const TCHAR* Name |
Check if a name (command or variable) has been registered with the console manager | HAL/IConsoleManager.h | |
FConsoleObjectWithNameMulticastDelegate & OnConsoleObjectUnregistered() |
HAL/IConsoleManager.h | ||
FConsoleVariableMulticastDelegate & OnCVarUnregistered() |
HAL/IConsoleManager.h | ||
bool ProcessUserConsoleInput
(
const TCHAR* Input, |
Process user input e.g. "MyCVar" to get the current value of the console variable "MyCVar -5.2" to set the value to -5.2 "MyCVar ?" to get the help text | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that is handles by an Exec functions (for auto completion) | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes no arguments | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes arguments | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes arguments | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes arguments | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes arguments | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes arguments | HAL/IConsoleManager.h | |
IConsoleCommand * RegisterConsoleCommand
(
const TCHAR* Name, |
Register a console command that takes arguments | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariable
(
const TCHAR* Name, |
Create a string console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariable
(
const TCHAR* Name, |
Create a string console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariable
(
const TCHAR* Name, |
Create a float console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariable
(
const TCHAR* Name, |
Create a int console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariable
(
const TCHAR* Name, |
Create a bool console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariableBitRef
(
const TCHAR* CVarName, |
Create a reference to a show flag variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariableRef
(
const TCHAR* Name, |
Create a reference to a int console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariableRef
(
const TCHAR* Name, |
Create a reference to a string console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariableRef
(
const TCHAR* Name, |
Create a reference to a name console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariableRef
(
const TCHAR* Name, |
Create a reference to a bool console variable | HAL/IConsoleManager.h | |
IConsoleVariable * RegisterConsoleVariableRef
(
const TCHAR* Name, |
Create a reference to a float console variable | HAL/IConsoleManager.h | |
FConsoleVariableSinkHandle RegisterConsoleVariableSink_Handle
(
const FConsoleCommandDelegate& Command |
The registered command is executed at few defined points (see CallAllConsoleVariableSinks) | HAL/IConsoleManager.h | |
void RegisterThreadPropagation
(
uint32 ThreadId, |
Currently only for render thread | HAL/IConsoleManager.h | |
void UnregisterConsoleObject
(
IConsoleObject* ConsoleObject, |
Unregisters a console object, if that object was registered. O(n), n is the console object count | HAL/IConsoleManager.h | |
void UnregisterConsoleObject
(
const TCHAR* Name, |
Unregisters a console variable or command by name, if an object of that name was registered. | HAL/IConsoleManager.h | |
void UnregisterConsoleVariableSink_Handle
(
FConsoleVariableSinkHandle Handle |
The registered command is executed at few defined points (see CallAllConsoleVariableSinks) | HAL/IConsoleManager.h | |
void UnsetAllConsoleVariablesWithTag
(
FName Tag, |
When a plugin is unmounted, it needs to unset cvars that it had set when it was mounted. | HAL/IConsoleManager.h |
Protected
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static IConsoleManager & Get() |
Returns the singleton for the console manager | HAL/IConsoleManager.h | |
static void SetupSingleton() |
Function to create the singleton | HAL/IConsoleManager.h |