Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/Tools > API/Editor/UnrealEd/Tools/UEdMode
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/Tools/UEdMode.h |
| Include | #include "Tools/UEdMode.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Tools/UEdMode.cpp |
virtual void RegisterTool
&40;
TSharedPtr< FUICommandInfo > UICommand,
FString ToolIdentifier,
UInteractiveToolBuilder &42; Builder,
EToolsContextScope ToolScope
&41;
Remarks
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.
Parameters
| Name | Description |
|---|---|
| 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) |