Navigation
API > API/Plugins > API/Plugins/ScriptableToolsFramework > API/Plugins/ScriptableToolsFramework/BaseTools
Inheritance Hierarchy
- UInteractiveTool
- UScriptableInteractiveTool
- UScriptableClickDragTool
- UEditorScriptableClickDragTool
References
| Module | ScriptableToolsFramework |
| Header | /Engine/Plugins/Runtime/ScriptableToolsFramework/Source/ScriptableToolsFramework/Public/BaseTools/ScriptableClickDragTool.h |
| Include | #include "BaseTools/ScriptableClickDragTool.h" |
Syntax
UCLASS ()
class UScriptableClickDragTool :
public UScriptableInteractiveTool ,
public IClickDragBehaviorTarget,
public IHoverBehaviorTarget
Remarks
UScriptableClickDragTool is an extension of UScriptableInteractiveTool that supports a "click-drag" interaction, ie capture the input device on press-down and collect any device movement events until release. Hover is also supported.
Note: Currently these interactions are only supported for mouse devices, or devices remapped to be a mouse by the UInputRouter. Also currently only the left-mouse-button is supported.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAltModifier | ||
| bool | bCtrlModifier | ||
| bool | bInClickDrag | ||
| bool | bInHover | ||
| bool | bShiftModifier | ||
| bool | bUpdateModifiersDuringDrag | Allow Modifiers states to be updated during ClickDrag sequence. | |
| bool | bWantMouseHover | Enable Hover support API functions OnHoverHitTest / OnHoverBegin / OnHoverUpdate / OnHoverEnd for Mouse devices. | |
| TObjectPtr< UClickDragInputBehavior > | ClickDragBehavior | ||
| const FScriptableToolModifierStates & | Modifiers | ||
| TObjectPtr< UMouseHoverBehavior > | MouseHoverBehavior |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | BeginHoverSequenceHitTest
(
const FInputDeviceRay& PressPos |
IHoverBehaviorTarget API. | |
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
IClickDragBehaviorTarget API. | |
| FScriptableToolModifierStates | |||
| void | OnBeginHover
(
const FInputDeviceRay& DevicePos |
||
| void | OnClickDrag
(
const FInputDeviceRay& DragPos |
||
| void | OnClickPress
(
const FInputDeviceRay& PressPos |
||
| void | OnClickRelease
(
const FInputDeviceRay& ReleasePos |
||
| void | OnDragBegin
(
FInputDeviceRay StartPosition, |
||
| void | OnDragBegin_Implementation
(
FInputDeviceRay StartPosition, |
||
| void | OnDragEnd
(
FInputDeviceRay EndPosition, |
||
| void | OnDragEnd_Implementation
(
FInputDeviceRay EndPosition, |
||
| void | |||
| void | |||
| void | OnDragUpdatePosition
(
FInputDeviceRay NewPosition, |
||
| void | OnDragUpdatePosition_Implementation
(
FInputDeviceRay NewPosition, |
||
| void | OnEndHover () |
||
| void | OnHoverBegin
(
FInputDeviceRay HoverPos, |
Begin a sequence of Hover input events | |
| void | OnHoverBegin_Implementation
(
FInputDeviceRay HoverPos, |
||
| void | OnHoverEnd
(
const FScriptableToolModifierStates& Modifiers |
Indicate that an active captured Hover sequence has ended. | |
| void | OnHoverEnd_Implementation
(
const FScriptableToolModifierStates& Modifiers |
||
| FInputRayHit | OnHoverHitTest
(
FInputDeviceRay HoverPos, |
Hover Support API OnHoverHitTest is called to allow the Tool to indicate if it would like to start consuing "hover" input at HoverPos. | |
| FInputRayHit | OnHoverHitTest_Implementation
(
FInputDeviceRay HoverPos, |
||
| bool | OnHoverUpdate_Implementation
(
FInputDeviceRay HoverPos, |
||
| void | |||
| bool | OnUpdateHover
(
const FInputDeviceRay& DevicePos |
||
| void | OnUpdateModifierState
(
int ModifierID, |
||
| FInputRayHit | TestIfCanBeginClickDrag
(
FInputDeviceRay ClickPos, |
Click Support API | |
| FInputRayHit | TestIfCanBeginClickDrag_Implementation
(
FInputDeviceRay ClickPos, |
||
UPARAM
(
DisplayName |
|||
UPARAM
(
DisplayName |
Update an active Hover sequence. | ||
UPARAM
(
DisplayName |
|||
UPARAM
(
DisplayName |
Modifer Buttons Support API | ||
UPARAM
(
DisplayName |
|||
UPARAM
(
DisplayName |
Overridden from UScriptableInteractiveTool
| Type | Name | Description | |
|---|---|---|---|
| void | Setup () |