FUVEditor2DViewportClient

Client used to display a 2D view of the UV's, implemented by using a perspective viewport with a locked camera.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FEditorViewportClient

IInputBehaviorSource

FUVEditor2DViewportClient

References

Module

UVEditor

Header

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

Include

#include "UVEditor2DViewportClient.h"

Syntax

class FUVEditor2DViewportClient :
    public FEditorViewportClient,
    public IInputBehaviorSource

Remarks

Client used to display a 2D view of the UV's, implemented by using a perspective viewport with a locked camera.

Variables

Name Description

Protected variable

UInputBehaviorS...

 

BehaviorSet

These get added in AddReferencedObjects for memory management.

Protected variable

TUniquePtr< FUV...

 

ScrollBehaviorTarget

Not forward declared, else we get compile errors if their destruction shows up anywhere in the header.

Protected variable

UUVToolViewport...

 

ViewportButtonsAPI

Protected variable

TUniquePtr< FUV...

 

ZoomBehaviorTarget

Constructors

Name Description

Public function

FUVEditor2DViewportClient

(
    FEditorModeTools* InModeTools,
    FPreviewScene* InPreviewScene,
    const TWeakPtr< SEditorViewport >&...,
    UUVToolViewportButtonsAPI* Vie...
)

Destructors

Name Description

Public function Virtual

~FUVEditor2DViewportClient()

Functions

Overridden from FEditorViewportClient

Name Description

Public function Virtual Const

bool

 

CanSetWidgetMode

(
    UE::Widget::EWidgetMode NewMode
)

Whether or not the new widget mode can be set in this viewport

Public function Virtual Const

UE::Widget::...

 

GetWidgetMode()

Public function Virtual

void

 

SetWidgetMode

(
    UE::Widget::EWidgetMode NewMode
)

Sets the current widget mode

Public function Virtual Const

bool

 

ShouldOrbitCamera()

Overridden from FViewportClient

Name Description

Public function Virtual

bool

 

InputKey

(
    FViewport* InViewport,
    int32 ControllerId,
    FKey Key,
    EInputEvent Event,
    float,
    bool
)

FEditorViewportClient.

Overridden from FViewElementDrawer

Name Description

Public function Virtual

void

 

Draw

(
    const FSceneView* View,
    FPrimitiveDrawInterface* PDI
)

FViewElementDrawer interface

Overridden from FGCObject

Name Description

Public function Virtual

void

 

AddReferencedObjects

(
    FReferenceCollector& Collector
)

FGCObject.

Overridden from IInputBehaviorSource

Name Description

Public function Virtual Const

const UInput...

 

GetInputBehaviors()

IInputBehaviorSource.