Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/InteractiveToolsFramework/Public/InteractionMechanic.h |
Include |
#include "InteractionMechanic.h" |
class UInteractionMechanic : public UObject
A UInteractionMechanic implements a "user interaction". This is generally a subset of an InteractiveTool, for example an interaction to draw a polygon could be used in many tools, but requires handling input events and converting them to click points on a plane, handling various cases like closing a loop, undo/redo of points, etc. Ideally all these aspects should be able to be wrapped up in an UInteractionMechanic that multiple Tools can use.
(This class is still a work in progress)
Name | Description | ||
---|---|---|---|
|
TWeakObjectPtr<... |
ParentTool |
Name | Description | |
---|---|---|
|
UInteractionMechanic() |
Name | Description | ||
---|---|---|---|
|
AddToolPropertySource ( |
Add a PropertySet object for this Mechanic to parent Tool |
|
|
UInteractive... |
GetParentTool() |
|
|
Render ( |
Allow the Mechanic to do any custom drawing (ie via PDI/RHI) |
|
|
SetToolPropertySourceEnabled ( |
Enable/Disable a PropertySet object for the parent tool. |
|
|
Setup ( |
Called to initialize the InteractionMechanic |
|
|
Shutdown() |
Called to clean up the InteractionMechanic |
|
|
Tick ( |
ALlow the Mechanic to Tick |