Navigation
API > API/Editor > API/Editor/EditorInteractiveToolsFramework
Implements a viewport interaction to change the current zoom level, using either keyboard inputs or the mouse wheel
| Name | UViewportZoomInteraction |
| Type | class |
| Header File | /Engine/Source/Editor/Experimental/EditorInteractiveToolsFramework/Public/ViewportInteractions/ViewportZoomInteraction.h |
| Include Path | #include "ViewportInteractions/ViewportZoomInteraction.h" |
Syntax
UCLASS (MinimalAPI, Transient)
class UViewportZoomInteraction :
public UViewportInteraction ,
public IMouseWheelBehaviorTarget ,
public IKeyInputBehaviorTarget
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UViewportInteraction → UViewportZoomInteraction
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UViewportZoomInteraction() |
ViewportInteractions/ViewportZoomInteraction.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| LastZoomDragY | float | ViewportInteractions/ViewportZoomInteraction.h | ||
| ZoomDirection | int16 | ViewportInteractions/ViewportZoomInteraction.h | ||
| ZoomIn | FKey | TODO: make them customizable. | ViewportInteractions/ViewportZoomInteraction.h | |
| ZoomOut | FKey | ViewportInteractions/ViewportZoomInteraction.h |
Functions
Public
Overridden from UViewportInteraction
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Tick
(
float InDeltaTime |
ViewportInteractions/ViewportZoomInteraction.h |
Overridden from IMouseWheelBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnMouseWheelScrollDown
(
const FInputDeviceRay& InCurrentPos |
ViewportInteractions/ViewportZoomInteraction.h | ||
virtual void OnMouseWheelScrollUp
(
const FInputDeviceRay& InCurrentPos |
ViewportInteractions/ViewportZoomInteraction.h | ||
virtual FInputRayHit ShouldRespondToMouseWheel
(
const FInputDeviceRay& InCurrentPos |
ViewportInteractions/ViewportZoomInteraction.h |
Overridden from IModifierToggleBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnForceEndCapture() |
ViewportInteractions/ViewportZoomInteraction.h |
Overridden from IKeyInputBehaviorTarget
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnKeyPressed
(
const FKey& InKeyID |
ViewportInteractions/ViewportZoomInteraction.h | ||
virtual void OnKeyReleased
(
const FKey& InKeyID |
ViewportInteractions/ViewportZoomInteraction.h |