Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework > API/Editor/EditorInteractiveToolsFramework/Behaviors
Inheritance Hierarchy
- IModifierToggleBehaviorTarget
- IClickDragBehaviorTarget
- FEditor2DScrollBehaviorTarget
References
| Module | EditorInteractiveToolsFramework |
| Header | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/2DViewportBehaviorTargets.h |
| Include | #include "Behaviors/2DViewportBehaviorTargets.h" |
Syntax
class FEditor2DScrollBehaviorTarget : public IClickDragBehaviorTarget
Remarks
Allows click-dragging to move the camera in the XY plane.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector3d | DragStart | ||
| FVector3d | OriginalCameraLocation | ||
| FEditorViewportClient * | ViewportClient | TODO: Replace with a context object to avoid dependency on FEditorViewportClient (JIRA UE-163677) |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FEditor2DScrollBehaviorTarget
(
FEditorViewportClient* ViewportClientIn |
Overridden from IClickDragBehaviorTarget
| Type | Name | Description | |
|---|---|---|---|
| FInputRayHit | CanBeginClickDragSequence
(
const FInputDeviceRay& PressPos |
IClickDragBehaviorTarget. | |
| void | OnClickDrag
(
const FInputDeviceRay& DragPos |
Notify Target that input position has changed | |
| void | OnClickPress
(
const FInputDeviceRay& PressPos |
Notify Target that click press ocurred | |
| void | OnClickRelease
(
const FInputDeviceRay& ReleasePos |
Notify Target that click release occurred | |
| void | Notify Target that click-drag sequence has been explicitly terminated (eg by escape key) |