Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseTools
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UInteractiveTool
- UClickDragTool
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseTools/ClickDragTool.h |
| Include | #include "BaseTools/ClickDragTool.h" |
Syntax
class UClickDragTool :
public UInteractiveTool,
public IClickDragBehaviorTarget
Remarks
UClickDragTool is a base tool that basically just implements IClickDragBehaviorTarget, and on setup registers a UClickDragInputBehavior. You can subclass this Tool to implement basic click-drag type Tools. If you want to do more advanced things, like handle modifier buttons/keys, you will need to implement IClickDragBehaviorTarget yourself
Overridden from UInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| void | Setup () |
Register default primary-button-click InputBehaviors |
Overridden from IClickDragBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
IClickBehaviorTarget implementation Test if target can begin click-drag interaction at this point | |
| void | OnClickDrag
(
const FInputDeviceRay& DragPos |
Notify Target that input position has changed | |
| void | OnClickPress
(
const FInputDeviceRay& PressPos |
Notify Target that click press ocurred | |
| void | OnClickRelease
(
const FInputDeviceRay& ReleasePos |
Notify Target that click release occurred | |
| void | Notify Target that click-drag sequence has been explicitly terminated (eg by escape key) |