Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
Inheritance Hierarchy
- UInteractiveToolsContext
- UEditorInteractiveToolsContext
- UModeManagerInteractiveToolsContext
- UWidgetToolsContext
References
| Module | EditorInteractiveToolsFramework |
| Header | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/EdModeInteractiveToolsContext.h |
| Include | #include "EdModeInteractiveToolsContext.h" |
Syntax
UCLASS (Transient)
class UModeManagerInteractiveToolsContext : public UEditorInteractiveToolsContext
Remarks
UModeManagerInteractiveToolsContext extends UEditorInteractiveToolsContext with various functions for handling device (mouse) input. These functions are currently called by the EdMode Manager (FEditorModeTools).
Variables
| Type | Name | Description | |
|---|---|---|---|
| FDelegateHandle | BeginPIEDelegateHandle | Called when PIE is about to start, shuts down active tools | |
| FInputDeviceState | CurrentMouseState | Input event instance used to keep track of various button states, etc, that we cannot directly query on-demand | |
| TArray< TObjectPtr< UEdModeInteractiveToolsContext > > | EdModeToolsContexts | ||
| FDelegateHandle | PreSaveWorldDelegateHandle | Called before a Save starts. This currently shuts down active tools. | |
| FDelegateHandle | ViewportClientListChangedHandle | Called when viewport clients change | |
| FDelegateHandle | WorldTearDownDelegateHandle | Called when a map is changed |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CapturedMouseMove
(
FEditorViewportClient* InViewportClient, |
||
| UEdModeInteractiveToolsContext * | Create and initialize a new EdMode-level ToolsContext derived from the ModeManager ToolsContext. | ||
| bool | EndTracking
(
FEditorViewportClient* InViewportClient, |
||
| bool | GetCursor
(
EMouseCursor::Type& OutCursor |
||
| bool | InputKey
(
FEditorViewportClient* ViewportClient, |
Input handling, these functions forward ViewportClient events to the UInputRouter | |
| bool | MouseEnter
(
FEditorViewportClient* ViewportClient, |
||
| bool | MouseLeave
(
FEditorViewportClient* ViewportClient, |
||
| bool | MouseMove
(
FEditorViewportClient* ViewportClient, |
||
| bool | OnChildEdModeActivated
(
UEdModeInteractiveToolsContext* ChildToolsContext |
Call to add a child EdMode ToolsContext created using the above function | |
| bool | OnChildEdModeDeactivated
(
UEdModeInteractiveToolsContext* ChildToolsContext |
Call to release a child EdMode ToolsContext created using the above function | |
| bool | StartTracking
(
FEditorViewportClient* InViewportClient, |
||
| void | UpdateStateWithoutRoutingInputKey
(
FEditorViewportClient* ViewportClient, |
This updates internal state like InputKey, but doesn't route the results to the input router. |
Overridden from UEditorInteractiveToolsContext
| Type | Name | Description | |
|---|---|---|---|
| void | DeactivateAllActiveTools
(
EToolShutdownType ShutdownType |
||
| void | DrawHUD
(
FViewportClient* ViewportClient, |
||
| FRay | |||
| void | Initialize
(
IToolsContextQueriesAPI* QueriesAPI, |
We hide these | |
| bool | |||
| void | Render
(
const FSceneView* View, |
||
| void | Shutdown () |
||
| void | Tick
(
FEditorViewportClient* ViewportClient, |
UEditorInteractiveToolsContext API implementations that also forward calls to any child EdMode ToolsContexts |