FEditor2DScrollBehaviorTarget

Allows click-dragging to move the camera in the XY plane.

Unreal Engine C++ API Reference > Editor > EditorInteractiveToolsFramework > Behaviors

Inheritance Hierarchy

References

   
Module EditorInteractiveToolsFramework
Header /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/2DViewportBehaviorTargets.h
Include #include "Behaviors/2DViewportBehaviorTargets.h"

Syntax

class FEditor2DScrollBehaviorTarget : public [IClickDragBehaviorTarget](API\Runtime\InteractiveToolsFramework\BaseBehaviors\IClickDragBehaviorTarget)  

Remarks

Allows click-dragging to move the camera in the XY plane.

Variables

Type Name Description
FVector3d DragStart  
FVector3d OriginalCameraLocation  
FEditorViewport... ViewportClient TODO: Replace with a context object to avoid dependency on FEditorViewportClient (JIRA UE-163677)

Constructors

Type Name Description
  FEditor2DScrollBehaviorTarget ( FEditorViewportClient* Viewpor... )  

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 OnTerminateDragSequence () Notify Target that click-drag sequence has been explicitly terminated (eg by escape key)

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library