Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
Functions required to apply standard "Click" and "Click-Drag" state machines to a target object. Differs to SingleClickOrDragBehavior in that it provides a separate call sequence for click press and click release.
| Name | ISingleClickAndDragBehaviorTarget |
| Type | class |
| Header File | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/SingleClickAndDragBehavior.h |
| Include Path | #include "Behaviors/SingleClickAndDragBehavior.h" |
Syntax
class ISingleClickAndDragBehaviorTarget : public IModifierToggleBehaviorTarget
Implements Interfaces
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ISingleClickAndDragBehaviorTarget() |
Behaviors/SingleClickAndDragBehavior.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInputRayHit CanBeginSingleClickAndDragSequence
(
const FInputDeviceRay& InPressPos |
Test if target can begin click-drag interaction at this point | Behaviors/SingleClickAndDragBehavior.h | |
void OnClickDrag
(
const FInputDeviceRay& InDragPos |
Notify Target that input position has changed | Behaviors/SingleClickAndDragBehavior.h | |
void OnClickPress
(
const FInputDeviceRay& InPressPos |
Notify Target that click press ocurred | Behaviors/SingleClickAndDragBehavior.h | |
void OnClickRelease
(
const FInputDeviceRay& InReleasePos, |
Notify Target that click release occurred | Behaviors/SingleClickAndDragBehavior.h | |
void OnDragStart
(
const FInputDeviceRay& InDragPos |
Notify Target that the drag process has started | Behaviors/SingleClickAndDragBehavior.h | |
void OnTerminateSingleClickAndDragSequence() |
Notify Target that click-drag sequence has been explicitly terminated (eg by escape key) | Behaviors/SingleClickAndDragBehavior.h |