UDynamicMeshReplacementChangeTarget

Bare bones wrapper of FDynamicMesh3 that supports MeshReplacementChange-based updates.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UDynamicMeshReplacementChangeTarget

References

Module

ModelingComponents

Header

/Engine/Plugins/Runtime/MeshModelingToolset/Source/ModelingComponents/Public/Changes/DynamicMeshChangeTarget.h

Include

#include "Changes/DynamicMeshChangeTarget.h"

Syntax

UCLASS(Transient)
class UDynamicMeshReplacementChangeTarget :
    public UObject,
    public IMeshReplacementCommandChangeTarget

Remarks

Bare bones wrapper of FDynamicMesh3 that supports MeshReplacementChange-based updates. Shares the mesh ptr with the MeshReplacementChange objects, so it must not be changed directly TODO: also support other MeshChange objects (by making a copy of the mesh when applying these changes)

Variables

Name Description

Protected variable

TSharedPtr< con...

 

Mesh

Public variable

FSimpleMulticas...

 

OnMeshChanged

This delegate fires when a FCommandChange is applied to this component, so that parent objects know the mesh has changed.

Constructors

Name Description

Public function

UDynamicMeshReplacementChangeTarget()

Public function

UDynamicMeshReplacementChangeTarget

(
    TSharedPtr< const FDynamicMesh3, ES...
)

Destructors

Functions

Name Description

Public function Const

const TShare...

 

GetMesh()

Public function

TUniquePtr< ...

 

ReplaceMesh

(
    const TSharedPtr< const FDynamicMes...
)

Update the mesh and return a corresponding FChange Does not emit the change.

Public function Virtual

void

 

SetMesh

(
    TSharedPtr< const FDynamicMesh3, ES...
)

Overridden from IMeshReplacementCommandChangeTarget

Name Description

Public function Virtual

void

 

ApplyChange

(
    const FMeshReplacementChange* ...,
    bool bRevert
)

Apply/Revert a general mesh change to the internal mesh (implements IMeshReplacementCommandChangeTarget)