Navigation
API > API/Editor > API/Editor/UnrealEd
Inheritance Hierarchy
- FDragTool
- FDragTool_ActorBoxSelect
- FDragTool_ActorFrustumSelect
- FDragTool_Measure
- FDragTool_ViewportChange
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/EditorDragTools.h |
| Include | #include "EditorDragTools.h" |
Syntax
class FDragTool
Remarks
The base class that all drag tools inherit from. The drag tools implement special behaviors for the user clicking and dragging in a viewport.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bAltDown | These flags store the state of various buttons that were pressed when the drag was started. | |
| bool | bControlDown | ||
| bool | bConvertDelta | Does this drag tool need to have the mouse movement converted to the viewport orientation? | |
| bool | bIsDragging | True if we are dragging | |
| bool | bLeftMouseButtonDown | ||
| bool | bMiddleMouseButtonDown | ||
| bool | bRightMouseButtonDown | ||
| bool | bShiftDown | ||
| bool | bUseSnapping | If true, the drag tool wants to be passed grid snapped values. | |
| FVector | End | ||
| FVector | EndWk | ||
| FEditorModeTools * | ModeTools | ||
| FVector | Start | The start/end location of the current drag. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDragTool
(
FEditorModeTools* InModeTools |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FDragTool () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDelta
(
const FVector& InDelta |
Updates the drag tool's end location with the specified delta. | |
| void | EndDrag () |
Ends a mouse drag behavior (the user has let go of the mouse button). | |
| bool | IsDragging () |
||
| void | Rendering stub for 2D viewport drag tools. | ||
| void | Render
(
const FSceneView* View, |
||
| void | Render3D
(
const FSceneView* View, |
||
| void | StartDrag
(
FEditorViewportClient* InViewportClient, |
Starts a mouse drag behavior. |