/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/SingleClickOrDragBehavior.h
The hit-test and on-clicked functions are provided by aIClickBehaviorTargetinstance, while anIClickDragBehaviorTargetprovides the can-click-drag/begin-drag/update-drag/end-drag functionality.
class USingleClickOrDragInputBehavior : public [UAnyButtonInputBehavior](API\Runtime\InteractiveToolsFramework\BaseBehaviors\UAnyButtonInputBehavior)
bool
bBeginDragIfClickTargetNotHit
If true (default), then if the click-mouse-down does not hit a valid click target (determined byIClickBehaviorTarget::IsHitByClick), then the Drag will be initiated
bool
bImmediatelyBeginDragInBeginCapture
Flag used to communicate between WantsCapture and BeginCapture
bool
bInDrag
Set to true if we are in an active drag capture, eg after rejecting possible click
EInputCaptureSi...
CaptureSide
Device capture
float
ClickDistanceThreshold
If the device moves more than this distance in 2D (pixel?) units, the interaction switches from click to drag
IClickBehaviorT...
ClickTarget
Click Target object
IClickDragBehav...
DragTarget
Drag Target object
TFunction< bool...
ModifierCheckFunc
WantsCapture()will only return capture request if this function returns true (or is null)
FInputBehaviorM...
Modifiers
The modifier set for this behavior
FVector2D
MouseDownPosition2D
Click-down position, to determine if mouse has moved far enough to swap to drag interaction
FRay
MouseDownRay