Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseBehaviors
Inheritance Hierarchy
- UObject
- UInputBehavior
- UAnyButtonInputBehavior
- UClickDragInputBehavior
- ULocalClickDragInputBehavior
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/ClickDragBehavior.h |
| Include | #include "BaseBehaviors/ClickDragBehavior.h" |
Syntax
UCLASS (MinimalAPI)
class ULocalClickDragInputBehavior :
public UClickDragInputBehavior ,
public IClickDragBehaviorTarget
Remarks
ULocalClickDragInputBehavior is an implementation of UClickDragInputBehavior that also implements IClickDragBehaviorTarget directly, via a set of local lambda functions. To use/customize this class the client replaces the lambda functions with their own. This avoids having to create a second IClickDragBehaviorTarget implementation for trivial use-cases.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TUniqueFunction< FInputRayHit(const FInputDeviceRay &PressPos)> | CanBeginClickDragFunc | Lambda implementation of CanBeginClickDragSequence | |
| TUniqueFunction< void(const FInputDeviceRay &PressPos)> | OnClickDragFunc | Lambda implementation of OnClickDrag | |
| TUniqueFunction< void(const FInputDeviceRay &PressPos)> | OnClickPressFunc | Lambda implementation of OnClickPress | |
| TUniqueFunction< void(const FInputDeviceRay &ReleasePos)> | OnClickReleaseFunc | Lambda implementation of OnClickRelease | |
| TUniqueFunction< void()> | OnTerminateFunc | Lambda implementation of OnTerminateDragSequence |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize () |
Call this to initialize the class |
Overridden from UClickDragInputBehavior
| Type | Name | Description | |
|---|---|---|---|
| void | Initialize
(
IClickDragBehaviorTarget* Target |
Initialize this behavior with the given Target |
Overridden from IClickDragBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
IClickDragBehaviorTarget implementation | |
| 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) |