Navigation
API > API/Editor > API/Editor/ViewportInteraction
Container component for UViewportDragOperation that can be used by objects in the world that are draggable and implement the ViewportInteractableInterface
| Name | UViewportDragOperationComponent |
| Type | class |
| Header File | /Engine/Source/Editor/ViewportInteraction/Public/ViewportDragOperation.h |
| Include Path | #include "ViewportDragOperation.h" |
Syntax
UCLASS (MinimalAPI)
class UViewportDragOperationComponent : public UActorComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → UViewportDragOperationComponent
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UViewportDragOperationComponent() |
Default constructor. | ViewportDragOperation.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DragOperation | TObjectPtr< UViewportDragOperation > | The actual dragging implementation | ViewportDragOperation.h | |
| DragOperationSubclass | TSubclassOf< UViewportDragOperation > | The next class that will be used as drag operation | ViewportDragOperation.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearDragOperation() |
Destroys the dragoperation | ViewportDragOperation.h | |
UViewportDragOperation * GetDragOperation() |
Get the actual dragging operation | ViewportDragOperation.h | |
bool IsDragging() |
If this operation is currently active. | ViewportDragOperation.h | |
void SetDragOperationClass
(
const TSubclassOf< UViewportDragOperation > InDragOperation |
Sets the drag operation class that will be used next time starting dragging | ViewportDragOperation.h | |
void StartDragOperation() |
Starts new dragging operation | ViewportDragOperation.h |