Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework > API/Editor/EditorInteractiveToolsFramework/Behaviors
Inheritance Hierarchy
- IModifierToggleBehaviorTarget
- IMouseWheelBehaviorTarget
- FEditor2DMouseWheelZoomBehaviorTarget
References
| Module | EditorInteractiveToolsFramework |
| Header | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/Behaviors/2DViewportBehaviorTargets.h |
| Include | #include "Behaviors/2DViewportBehaviorTargets.h" |
Syntax
class FEditor2DMouseWheelZoomBehaviorTarget : public 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 | ||
| FEditorViewportClient * | 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* ViewportClientIn |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | SetCameraFarPlaneWorldZ
(
double CameraFarPlaneWorldZIn |
||
| void | SetCameraNearPlaneProportionZ
(
double CameraFarPlaneProportionZIn |
||
| void | SetZoomAmount
(
double PercentZoomIn |
||
| void | SetZoomLimits
(
double ZoomInLimitIn, |
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 |