Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
An implementation of UViewportClickDragBehavior that also implements IViewportClickDragBehaviorTarget directly, using a set of local lambda functions.
| Name | ULocalViewportClickDragBehavior |
| Type | class |
| Header File | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/ViewportClickDragBehavior.h |
| Include Path | #include "Behaviors/ViewportClickDragBehavior.h" |
Syntax
UCLASS (MinimalAPI)
class ULocalViewportClickDragBehavior :
public UViewportClickDragBehavior ,
public IViewportClickDragBehaviorTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UInputBehavior → UViewportClickDragBehavior → ULocalViewportClickDragBehavior
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CanBeginClickDragFunc | TUniqueFunction< FInputRayHit(const FInputDeviceRay &PressPos)> | Lambda implementation of CanBeginClickDragSequence | Behaviors/ViewportClickDragBehavior.h | |
| OnDragEndFunc | TUniqueFunction< void(const FInputDeviceRay &ReleasePos)> | Lambda implementation of OnDragEnd | Behaviors/ViewportClickDragBehavior.h | |
| OnDragFunc | TUniqueFunction< void(const FDragArgs &PressPos)> | Lambda implementation of OnClickDrag | Behaviors/ViewportClickDragBehavior.h | |
| OnDragStartFunc | TUniqueFunction< void(const FInputDeviceRay &PressPos)> | Lambda implementation of OnDragStart | Behaviors/ViewportClickDragBehavior.h | |
| OnEndCaptureFunc | TUniqueFunction< void(EEndCaptureReason)> | Lambda implementation of OnTerminateDragSequence | Behaviors/ViewportClickDragBehavior.h | |
| OnStateUpdatedFunc | TUniqueFunction< void(const FInputDeviceState &Input)> | Lambda implementation of OnStateUpdated | Behaviors/ViewportClickDragBehavior.h |
Functions
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Initialize () |
Call this to initialize the class | Behaviors/ViewportClickDragBehavior.h |
Overridden from IViewportClickDragBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FInputRayHit CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
Test if target can begin click-drag interaction at this point | Behaviors/ViewportClickDragBehavior.h | |
virtual void OnDrag
(
const FDragArgs& InDrag |
Notify Target that input position has changed | Behaviors/ViewportClickDragBehavior.h | |
virtual void OnDragEnd
(
const FInputDeviceRay& InDragEndPos |
Notify Target that drag has ended | Behaviors/ViewportClickDragBehavior.h | |
virtual void OnDragStart
(
const FInputDeviceRay& InDragStartPos |
Notify Target that drag has started | Behaviors/ViewportClickDragBehavior.h | |
virtual void OnEndCapture
(
EEndCaptureReason InReason |
Notify Target that capture has ended. | Behaviors/ViewportClickDragBehavior.h | |
virtual void OnStateUpdated
(
const FInputDeviceState& InInputDeviceState |
Notify Target button state has changed | Behaviors/ViewportClickDragBehavior.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Initialize
(
IViewportClickDragBehaviorTarget* InTarget |
Behaviors/ViewportClickDragBehavior.h |