UUVSelectTool

A tool for selecting elements of a flat FDynamicMesh corresponding to a UV layer of some asset.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

UVEditorTools

Header

/Engine/Plugins/Experimental/UVEditor/Source/UVEditorTools/Public/UVSelectTool.h

Include

#include "UVSelectTool.h"

Syntax

UCLASS()
class UUVSelectTool : public UInteractiveTool

Remarks

A tool for selecting elements of a flat FDynamicMesh corresponding to a UV layer of some asset. If bGizmoEnabled is set to true, the selected elements can be moved around.

TODO: Doesn't have undo/redo. Will get broken up into pieces later, probably.

Variables

Name Description

Protected variable

TArray< TShared...

 

AABBTrees

Protected variable

TArray< FAction...

 

AnalyticsActionHistory

Protected variable

bool

 

bGizmoTransformNeedsApplication

Protected variable

bool

 

bIgnoreOnCanonicalChange

Protected variable

bool

 

bInDrag

Protected variable UProperty

TObjectPtr< UUV...

 

ChangeRouter

Protected variable

TArray< UE::Geo...

 

CurrentSelectionVidPairs

When selecting edges, used to hold the edges as pairs of vids, because the eids change during undo/redo and other topological operations.

Protected variable UProperty

TObjectPtr< UUV...

 

EmitChangeAPI

Protected variable

UE::Geometry::F...

 

InitialGizmoFrame

Protected variable

UE::Geometry::U...

 

InputTargetAnalytics

Protected variable UProperty

TObjectPtr< UUV...

 

IslandConformalUnwrapAction

Protected variable

TSet< int32 >

 

LivePreviewEids

Protected variable UProperty

TObjectPtr< APr...

 

LivePreviewGeometryActor

Protected variable UProperty

TObjectPtr< ULi...

 

LivePreviewLineSet

Protected variable UProperty

TObjectPtr< UPo...

 

LivePreviewPointSet

Protected variable

TSet< int32 >

 

LivePreviewVids

Protected variable

TArray< FVector...

 

MovingVertOriginalPositions

Protected variable

TArray< int32 >

 

MovingVids

Protected variable

ESelectToolActi...

 

PendingAction

Protected variable

TArray< int32 >

 

SelectedTids

Protected variable

TArray< int32 >

 

SelectedVids

Protected variable UProperty

TObjectPtr< UMe...

 

SelectionMechanic

Protected variable

int32

 

SelectionTargetIndex

Protected variable UProperty

TObjectPtr< UUV...

 

SewAction

Protected variable UProperty

TArray< TObject...

 

Targets

Protected variable

UWorld *

 

TargetWorld

Protected variable UProperty

TObjectPtr< USe...

 

ToolActions

Protected variable

FDateTime

 

ToolStartTimeAnalytics

Protected variable UProperty

TObjectPtr< UCo...

 

TransformGizmo

Protected variable

FTransform

 

UnappliedGizmoTransform

Protected variable UProperty

TObjectPtr< UUV...

 

ViewportButtonsAPI

Functions

Name Description

Protected function

void

 

ApplyAction

(
    ESelectToolAction ActionType
)

Protected function Virtual

void

 

ApplyGizmoTransform()

Protected function

void

 

ApplySplit()

Protected function

void

 

ApplySplitBowtieVertices()

Protected function

void

 

ApplySplitEdges()

Protected function Virtual

void

 

ClearWarning()

Protected function Virtual

void

 

GizmoTransformChanged

(
    UTransformProxy* Proxy,
    FTransform Transform
)

Callbacks we'll receive from the gizmo proxy.

Protected function Virtual

void

 

GizmoTransformEnded

(
    UTransformProxy* Proxy
)

Protected function Virtual

void

 

GizmoTransformStarted

(
    UTransformProxy* Proxy
)

Protected function Virtual

void

 

OnSelectionChanged()

Protected function

void

 

RecordAnalytics()

Public function

void

 

RequestAction

(
    ESelectToolAction ActionType
)

Public function

void

 

SetGizmoTransform

(
    const FTransform& NewTransform
)

Public function

void

 

SetSelection

(
    const UE::Geometry::FDynamicMeshSel...
)

Used by undo/redo changes to update the tool state.

Public function Virtual

void

 

SetTargets

(
    const TArray< TObjectPtr< UUVEditor...
)

The tool will operate on the meshes given here.

Public function Virtual

void

 

SetWorld

(
    UWorld* World
)

Protected function Virtual

void

 

UpdateGizmo()

Protected function Virtual

void

 

UpdateLivePreviewLines()

Protected function

void

 

UpdateSelectionMode()

Overridden from UInteractiveTool

Name Description

Public function Virtual

void

 

DrawHUD

(
    FCanvas* Canvas,
    IToolsContextRenderAPI* Render...
)

Allow the Tool to do any custom screen space drawing

Public function Virtual Const

bool

 

HasAccept()

Public function Virtual Const

bool

 

HasCancel()

Public function Virtual

void

 

OnPropertyModified

(
    UObject* PropertySet,
    FProperty* Property
)

Automatically called by UInteractiveToolPropertySet.OnModified delegate to notify Tool of child property set changes

Public function Virtual

void

 

OnTick

(
    float DeltaTime
)

Action support/system

Public function Virtual

void

 

Render

(
    IToolsContextRenderAPI* Render...
)

Allow the Tool to do any custom drawing (ie via PDI/RHI)

Public function Virtual

void

 

Setup()

UInteractiveTool.

Public function Virtual

void

 

Shutdown

(
    EToolShutdownType ShutdownType
)

Called by ToolManager to shut down the Tool

Classes

Name

Description

Protected struct

FActionHistoryItem

Analytics

Typedefs

Name

Description

FDynamicMeshAABBTree3