Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
A base class which can be used to implement interactions based on mouse drag actions
| Name | UViewportDragInteraction |
| Type | class |
| Header File | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/ViewportInteractions/ViewportDragInteraction.h |
| Include Path | #include "ViewportInteractions/ViewportDragInteraction.h" |
Syntax
UCLASS (MinimalAPI, Transient, Abstract)
class UViewportDragInteraction :
public UViewportInteraction ,
public IViewportClickDragBehaviorTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UViewportInteraction → UViewportDragInteraction
Implements Interfaces
Derived Classes
UViewportDragInteraction derived class hierarchy
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UViewportDragInteraction() |
ViewportInteractions/ViewportDragInteraction.h |
Functions
Public
Public Virtual
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanBeActivated() |
ViewportInteractions/ViewportDragInteraction.h | ||
virtual void OnDragDelta
(
float InMouseDeltaX, |
ViewportInteractions/ViewportDragInteraction.h |
Overridden from UViewportInteraction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool IsActive() |
ViewportInteractions/ViewportDragInteraction.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 | ViewportInteractions/ViewportDragInteraction.h | |
virtual void OnDrag
(
const FDragArgs& InDrag |
Notify Target that input position has changed | ViewportInteractions/ViewportDragInteraction.h | |
virtual void OnDragEnd
(
const FInputDeviceRay& InDragEndPos |
Notify Target that drag has ended | ViewportInteractions/ViewportDragInteraction.h | |
virtual void OnDragStart
(
const FInputDeviceRay& InDragStartPos |
Notify Target that drag has started | ViewportInteractions/ViewportDragInteraction.h | |
virtual void OnEndCapture
(
EEndCaptureReason InReason |
Notify Target that capture has ended. | ViewportInteractions/ViewportDragInteraction.h | |
virtual void OnStateUpdated
(
const FInputDeviceState& InInputDeviceState |
Notify Target button state has changed | ViewportInteractions/ViewportDragInteraction.h |