Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
Allows the mouse wheel to move the camera forwards/backwards relative to the XY plane, in the direction pointed to by the mouse.
| Name | FEditor2DMouseWheelZoomBehaviorTarget |
| Type | class |
| Header File | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/2DViewportBehaviorTargets.h |
| Include Path | #include "Behaviors/2DViewportBehaviorTargets.h" |
Syntax
class FEditor2DMouseWheelZoomBehaviorTarget : public IMouseWheelBehaviorTarget
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FEditor2DMouseWheelZoomBehaviorTarget
(
FEditorViewportClient* ViewportClientIn |
Behaviors/2DViewportBehaviorTargets.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DEFAULT_ZOOM_AMOUNT | const double | Behaviors/2DViewportBehaviorTargets.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void SetCameraFarPlaneWorldZ
(
double CameraFarPlaneWorldZIn |
Behaviors/2DViewportBehaviorTargets.h | ||
void SetCameraNearPlaneProportionZ
(
double CameraFarPlaneProportionZIn |
Behaviors/2DViewportBehaviorTargets.h | ||
virtual void SetZoomAmount
(
double PercentZoomIn |
Behaviors/2DViewportBehaviorTargets.h | ||
void SetZoomLimits
(
double ZoomInLimitIn, |
Behaviors/2DViewportBehaviorTargets.h |
Overridden from IMouseWheelBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnMouseWheelScrollDown
(
const FInputDeviceRay& CurrentPos |
Behaviors/2DViewportBehaviorTargets.h | ||
virtual void OnMouseWheelScrollUp
(
const FInputDeviceRay& CurrentPos |
Behaviors/2DViewportBehaviorTargets.h | ||
virtual FInputRayHit ShouldRespondToMouseWheel
(
const FInputDeviceRay& CurrentPos |
IMouseWheelBehaviorTarget. | Behaviors/2DViewportBehaviorTargets.h |