FUVEditor2DMouseWheelZoomBehaviorTarget

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

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

IModifierToggleBehaviorTarget

IMouseWheelBehaviorTarget

FUVEditor2DMouseWheelZoomBehaviorTarget

References

Module

UVEditor

Header

/Engine/Plugins/Experimental/UVEditor/Source/UVEditor/Public/UVEditor2DViewportBehaviorTargets.h

Include

#include "UVEditor2DViewportBehaviorTargets.h"

Syntax

class FUVEditor2DMouseWheelZoomBehaviorTarget : 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

Name Description

Protected variable

double

 

CameraFarPlaneWorldZ

Protected variable

double

 

CameraNearPlaneProportionZ

Protected variable

FUVEditor2DView...

 

ViewportClient

Protected variable

double

 

ZoomInLimit

Protected variable

double

 

ZoomInProportion

Protected variable

double

 

ZoomOutProportion

Constructors

Functions

Name Description

Public function

void

 

SetCameraFarPlaneWorldZ

(
    double CameraFarPlaneWorldZIn
)

Public function

void

 

SetCameraNearPlaneProportionZ

(
    double CameraFarPlaneProportionZIn
)

Public function Virtual

void

 

SetZoomAmount

(
    double PercentZoomIn
)

Overridden from IMouseWheelBehaviorTarget

Name Description

Public function Virtual

void

 

OnMouseWheelScrollDown

(
    const FInputDeviceRay& CurrentPos
)

Public function Virtual

void

 

OnMouseWheelScrollUp

(
    const FInputDeviceRay& CurrentPos
)

Public function Virtual

FInputRayHit

 

ShouldRespondToMouseWheel

(
    const FInputDeviceRay& CurrentPos
)

IMouseWheelBehaviorTarget.

Constants

Name

Description

DEFAULT_ZOOM_AMOUNT