IClickDragBehaviorTarget

Functions required to apply standard "Click-Drag" state machines to a target object.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

InteractiveToolsFramework

Header

/Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseBehaviors/BehaviorTargetInterfaces.h

Include

#include "BaseBehaviors/BehaviorTargetInterfaces.h"

Syntax

class IClickDragBehaviorTarget : public IModifierToggleBehaviorTarget

Remarks

Functions required to apply standard "Click-Drag" state machines to a target object. See UClickDragBehavior for an example of this kind of state machine.

Destructors

Name Description

Public function Virtual

~IClickDragBehaviorTarget()

Functions

Name Description

Public function

FInputRayHit

 

CanBeginClickDragSequence

(
    const FInputDeviceRay& PressPos
)

Test if target can begin click-drag interaction at this point

Public function

void

 

OnClickDrag

(
    const FInputDeviceRay& DragPos
)

Notify Target that input position has changed

Public function

void

 

OnClickPress

(
    const FInputDeviceRay& PressPos
)

Notify Target that click press ocurred

Public function

void

 

OnClickRelease

(
    const FInputDeviceRay& ReleasePos
)

Notify Target that click release occurred

Public function

void

 

OnTerminateDragSequence()

Notify Target that click-drag sequence has been explicitly terminated (eg by escape key)