FEditor2DMouseWheelZoomBehaviorTarget

Allows the mouse wheel to move the camera forwards/backwards relative to the XY plane, in the direction pointed to by the mouse.

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 FEditor2DMouseWheelZoomBehaviorTarget : public [IMouseWheelBehaviorTarget](API\Runtime\InteractiveToolsFramework\BaseBehaviors\IMouseWheelBehaviorTarget)  

Remarks

Allows the mouse wheel to move the camera forwards/backwards relative to the XY plane, in the direction pointed to by the mouse.

Variables

Type Name Description
double CameraFarPlaneWorldZ  
double CameraNearPlaneProportionZ  
FEditorViewport... ViewportClient TODO: Replace with a context object to avoid dependency on (JIRA UE-163677)
double ZoomInLimit  
double ZoomInProportion  
double ZoomOutLimit  
double ZoomOutProportion  

Constructors

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

Functions

Type Name Description
void SetCameraFarPlaneWorldZ ( double CameraFarPlaneWorldZIn )  
void SetCameraNearPlaneProportionZ ( double CameraFarPlaneProportionZIn )  
void SetZoomAmount ( double PercentZoomIn )  
void SetZoomLimits ( double ZoomInLimitIn, double ZoomOutLimitIn )  

Overridden from IMouseWheelBehaviorTarget

Type Name Description
void OnMouseWheelScrollDown ( const FInputDeviceRay& CurrentPos )  
void OnMouseWheelScrollUp ( const FInputDeviceRay& CurrentPos )  
FInputRayHit ShouldRespondToMouseWheel ( const FInputDeviceRay& CurrentPos ) IMouseWheelBehaviorTarget.

Constants

Name Description
DEFAULT_ZOOM_AMOUNT  

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library