Navigation
API > API/Plugins > API/Plugins/SampleToolsEditorMode
This class provides an example of how to extend a UEdMode to add some simple tools using the InteractiveTools framework. The various UEdMode input event handlers (see UEdMode.h) forward events to a UEdModeInteractiveToolsContext instance, which has all the logic for interacting with the InputRouter, ToolManager, etc. The functions provided here are the minimum to get started inserting some custom behavior. Take a look at the UEdMode markup for more extensibility options.
| Name | USampleToolsEditorMode |
| Type | class |
| Header File | /Engine/Plugins/Editor/SampleToolsEditorMode/Source/Public/SampleToolsEditorMode.h |
| Include Path | #include "SampleToolsEditorMode.h" |
Syntax
UCLASS ()
class USampleToolsEditorMode : public UEdMode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UEdMode → USampleToolsEditorMode
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
USampleToolsEditorMode() |
SampleToolsEditorMode.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~USampleToolsEditorMode() |
SampleToolsEditorMode.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| EM_SampleToolsEditorModeId | const FEditorModeID | SampleToolsEditorMode.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ActorSelectionChangeNotify() |
SampleToolsEditorMode.h | ||
virtual void CreateToolkit() |
SampleToolsEditorMode.h | ||
virtual void Enter() |
SampleToolsEditorMode.h | ||
virtual TMap< FName, TArray< TSharedPtr< FUICommandInfo > > > GetModeCommands() |
SampleToolsEditorMode.h |