UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Geometry::FDynamicMeshAttributeSetChangeTracker Class Reference

#include <DynamicMeshChangeTracker.h>

Classes

struct  FElementState
 

Public Member Functions

GEOMETRYCORE_API FDynamicMeshAttributeSetChangeTracker (const FDynamicMeshAttributeSet *Attribs)
 
GEOMETRYCORE_API void BeginChange ()
 
GEOMETRYCORE_API TUniquePtr< FDynamicMeshAttributeChangeSetEndChange ()
 
GEOMETRYCORE_API void SaveInitialTriangle (int TriangleID)
 
GEOMETRYCORE_API void StoreAllFinalTriangles (const TArray< int > &TriangleIDs)
 
GEOMETRYCORE_API void SaveInitialVertex (int VertexID)
 
void StoreAllFinalVertices (const TArray< int > &VertexIDs)
 
GEOMETRYCORE_API void StoreAllFinalVertices (const TSet< int > &VertexIDs)
 

Protected Member Functions

template<typename AttribOverlayType , typename AttribChangeType >
void SaveElement (int ElementID, FElementState &State, const AttribOverlayType *Overlay, AttribChangeType &ChangeIn)
 

Protected Attributes

const FDynamicMeshAttributeSetAttribs = nullptr
 
FDynamicMeshAttributeChangeSetChange = nullptr
 
TArray< FElementStateUVStates
 
TArray< FElementStateNormalStates
 
FElementState ColorState
 

Detailed Description

FDynamicMeshAttributeSetChangeTracker constructs a well-formed set of TDynamicMeshAttributeChange objects (stored in a FDynamicMeshAttributeChangeSet). You should not use this class directly, it is intended to be used via FDynamicMeshChangeTracker

Constructor & Destructor Documentation

◆ FDynamicMeshAttributeSetChangeTracker()

FDynamicMeshAttributeSetChangeTracker::FDynamicMeshAttributeSetChangeTracker ( const FDynamicMeshAttributeSet Attribs)
explicit

Member Function Documentation

◆ BeginChange()

void FDynamicMeshAttributeSetChangeTracker::BeginChange ( )

Start tracking a change

◆ EndChange()

TUniquePtr< FDynamicMeshAttributeChangeSet > FDynamicMeshAttributeSetChangeTracker::EndChange ( )

End the change transaction and get the resulting change object

◆ SaveElement()

void UE::Geometry::FDynamicMeshAttributeSetChangeTracker::SaveElement ( int  ElementID,
FElementState State,
const AttribOverlayType Overlay,
AttribChangeType ChangeIn 
)
inlineprotected

◆ SaveInitialTriangle()

void FDynamicMeshAttributeSetChangeTracker::SaveInitialTriangle ( int  TriangleID)

Store the initial state of a triangle

◆ SaveInitialVertex()

void FDynamicMeshAttributeSetChangeTracker::SaveInitialVertex ( int  VertexID)

Store the initial state of a vertex

◆ StoreAllFinalTriangles()

void FDynamicMeshAttributeSetChangeTracker::StoreAllFinalTriangles ( const TArray< int > &  TriangleIDs)

store the final state of a set of triangles

◆ StoreAllFinalVertices() [1/2]

void UE::Geometry::FDynamicMeshAttributeSetChangeTracker::StoreAllFinalVertices ( const TArray< int > &  VertexIDs)
inline

store the final state of a set of vertices

◆ StoreAllFinalVertices() [2/2]

void FDynamicMeshAttributeSetChangeTracker::StoreAllFinalVertices ( const TSet< int > &  VertexIDs)

Member Data Documentation

◆ Attribs

const FDynamicMeshAttributeSet* UE::Geometry::FDynamicMeshAttributeSetChangeTracker::Attribs = nullptr
protected

◆ Change

FDynamicMeshAttributeChangeSet* UE::Geometry::FDynamicMeshAttributeSetChangeTracker::Change = nullptr
protected

◆ ColorState

FElementState UE::Geometry::FDynamicMeshAttributeSetChangeTracker::ColorState
protected

◆ NormalStates

TArray<FElementState> UE::Geometry::FDynamicMeshAttributeSetChangeTracker::NormalStates
protected

◆ UVStates

TArray<FElementState> UE::Geometry::FDynamicMeshAttributeSetChangeTracker::UVStates
protected

The documentation for this class was generated from the following files: