Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEdMode
Description
Registers and maps the provided UI command to actions that start / stop a given tool. Later on this UI command can be referenced to add the tool to a toolbar.
| Name | RegisterTool |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/Tools/UEdMode.h |
| Include Path | #include "Tools/UEdMode.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Tools/UEdMode.cpp |
virtual void RegisterTool
(
TSharedPtr < FUICommandInfo > UICommand,
FString ToolIdentifier,
UInteractiveToolBuilder * Builder,
EToolsContextScope ToolScope
)
Parameters
| Name | Remarks |
|---|---|
| UICommand | Command to map tool start / stop actions to |
| ToolIdentifier | Unique string identifier for the tool, used to check if tool is active |
| Builder | Builder for tool to be used by actions |
| ToolScope | Scope to determine lifetime of tool (Editor, Mode, etc) |