Navigation
API > API/Plugins > API/Plugins/SlateScriptingCommands
UEditorInputSubsystem Subsystem for dynamically registering editor commands through scripting
| Name | UUICommandsScriptingSubsystem |
| Type | class |
| Header File | /Engine/Plugins/Slate/SlateScripting/Source/SlateScriptingCommands/Public/UICommandsScriptingSubsystem.h |
| Include Path | #include "UICommandsScriptingSubsystem.h" |
Syntax
UCLASS (MinimalAPI)
class UUICommandsScriptingSubsystem : public UEngineSubsystem
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → USubsystem → UDynamicSubsystem → UEngineSubsystem → UUICommandsScriptingSubsystem
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bCanExecuteCommands | bool | Whether the commands for all the sets of the subsystem can be executed | UICommandsScriptingSubsystem.h | |
| CommandSets | TMap< FName, FScriptingCommandSet > | The list of command sets. Each set contains its own list of registered commands | UICommandsScriptingSubsystem.h | |
| CommandsInContext | TMap< FName, FScriptingCommandsContext > | The list of commands contexts. | UICommandsScriptingSubsystem.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanExecuteCommands() |
Checks whether commands registered in the subsystem can be executed | UICommandsScriptingSubsystem.h |
|
bool CanSetExecuteCommands
(
const FName SetName |
Checks whether commands in the given set can be executed. | UICommandsScriptingSubsystem.h |
|
TArray< FName > GetAvailableContexts () |
Retrieves the list of names for all contexts currently registered in the subsystem. | UICommandsScriptingSubsystem.h |
|
int GetBindingCountForContext
(
FName ContextName |
Retrieves the number of UI Command Lists registered within this context through the subsystem. | UICommandsScriptingSubsystem.h |
|
TArray< FScriptingCommandInfo > GetRegisteredCommands() |
Retrieves the list of command info for all commands currently registered in the subsystem | UICommandsScriptingSubsystem.h |
|
bool IsCommandRegistered
(
FScriptingCommandInfo CommandInfo, |
Checks whether the given command is registered within the subsystem. | UICommandsScriptingSubsystem.h |
|
bool IsCommandSetRegistered
(
FName SetName |
Checks whether the given set is currently registered in the subsystem | UICommandsScriptingSubsystem.h |
|
bool IsContextRegistered
(
FName ContextName |
Checks whether the context with the given name is currently registered in the subsystem This does not check whether the context is bound to any UI Command List. | UICommandsScriptingSubsystem.h |
|
bool IsInputChordMapped
(
FName ContextName, |
Checks whether the given input chord is already mapped to a command in the given context. | UICommandsScriptingSubsystem.h |
|
bool RegisterCommand
(
FScriptingCommandInfo CommandInfo, |
Registers a command within the given context and set. The set must be registered beforehand. | UICommandsScriptingSubsystem.h |
|
bool RegisterCommandChecked
(
FScriptingCommandInfo CommandInfo, |
Registers a command within the given context and set. The set must be registered beforehand. | UICommandsScriptingSubsystem.h |
|
void RegisterCommandListForContext
(
const FName ContextName, |
Registers a command list in the given context. | UICommandsScriptingSubsystem.h | |
bool RegisterCommandSet
(
FName SetName |
Registers a new command set | UICommandsScriptingSubsystem.h |
|
void SetCanExecuteCommands
(
bool bShouldExecuteCommands |
Sets whether commands registered in the subsystem can be executed | UICommandsScriptingSubsystem.h |
|
void SetCanSetExecuteCommands
(
FName SetName, |
Enables or disables execution of commands registered within the given set | UICommandsScriptingSubsystem.h |
|
void UnregisterAllSets () |
Unregisters all commands dynamically registered within all contexts and sets. | UICommandsScriptingSubsystem.h |
|
bool UnregisterCommand
(
FScriptingCommandInfo CommandInfo |
Unregisters a command previously registered. | UICommandsScriptingSubsystem.h |
|
void UnregisterCommandListForContext
(
const FName ContextName, |
Unregisters a command list from the given context. | UICommandsScriptingSubsystem.h | |
bool UnregisterCommandSet
(
FName SetName |
Unregisters the corresponding command set with all commands registered within it | UICommandsScriptingSubsystem.h |
|
bool UnregisterContext
(
const FName ContextName |
Unregisters all command lists from the given context. | UICommandsScriptingSubsystem.h |
Overridden from USubsystem
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Deinitialize() |
USubsystem Interface: handles deinitialization of instances of the system | UICommandsScriptingSubsystem.h | |
virtual void Initialize
(
FSubsystemCollectionBase& Collection |
USubsystem Interface: handles initialization of instances of the system This is where the subsystem binds to the CommandListRegistered delegate of the InputBindingManager | UICommandsScriptingSubsystem.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void HandleExecuteAction
(
FExecuteCommand OnExecuteAction, |
The delegate bound to registered commands. It will broadcast back to the given dynamic delegate | UICommandsScriptingSubsystem.h |