Navigation
API > API/Plugins > API/Plugins/SlateScriptingCommands
References
| Module | SlateScriptingCommands |
| Header | /Engine/Plugins/Slate/SlateScripting/Source/SlateScriptingCommands/Public/UICommandsScriptingSubsystem.h |
| Include | #include "UICommandsScriptingSubsystem.h" |
Syntax
USTRUCT&40;&41;
struct FScriptingCommandsContext
Remarks
The list of commands and UI Command Lists associated with a context. This enables easier management of commands within registered contexts and their UI Command Lists.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TWeakPtr< FUICommandList > > | CommandLists | An array of command list associated to the given context | |
| FName | ContextName | The context these command lists are bound to | |
| TArray< TSharedPtr< FScriptingCommand > > | ScriptingCommands | The commands bound in these command lists |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FScriptingCommandsContext
(
const FName InContextName |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | MapAllCommands
(
TSharedRef< FUICommandList > CommandList |
Maps all commands existing within this context to the given command list | |
| bool | MapCommand
(
const TSharedRef< FScriptingCommand > ScriptingCommand |
Maps the given command to all the command lists of this context | |
| bool | RegisterCommandList
(
const TSharedRef< FUICommandList > CommandList |
Registers a command list in this context then map to it all commands existing within this context | |
| void | UnmapAllCommands
(
TSharedRef< FUICommandList > CommandList |
Unmaps all commands existing within this context from the given command list | |
| bool | UnmapCommand
(
const TSharedRef< FScriptingCommand > ScriptingCommand |
Unmaps the given command from all the command lists of this context | |
| bool | UnregisterCommandList
(
const TSharedRef< FUICommandList > CommandList |
Unregisters command list from this context then unmap from it all commands existing within this context |