UDynamicMeshReplacementChangeTarget

Bare bones wrapper of [FDynamicMesh3](API\Plugins\DynamicMesh\FDynamicMesh3) that supports MeshReplacementChange-based updates.

Windows
MacOS
Linux

Inheritance Hierarchy

UObjectBase

UObjectBaseUtility

UObject

UDynamicMeshReplacementChangeTarget

References

Module

ModelingComponents

Header

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

Include

#include "Changes/DynamicMeshChangeTarget.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(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

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 > M...
)

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)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss