Navigation
API > API/Runtime > API/Runtime/GeometryFramework
FMeshChange represents an undoable change to a FDynamicMesh3. Currently only valid to call Apply/Revert when the Object is a one of several components backed by FDynamicMesh: UDynamicMeshComponent, UOctreeDynamicMeshComponent, UPreviewMesh
| Name | FMeshChange |
| Type | class |
| Header File | /Engine/Source/Runtime/GeometryFramework/Public/Changes/MeshChange.h |
| Include Path | #include "Changes/MeshChange.h" |
Syntax
class FMeshChange : public FMeshRegionChangeBase
Inheritance Hierarchy
- FChange → FCommandChange → FToolCommandChange → FMeshRegionChangeBase → FMeshChange
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMeshChange () |
Changes/MeshChange.h | ||
FMeshChange
(
TUniquePtr< UE::Geometry::FDynamicMeshChange > DynamicMeshChangeIn |
Changes/MeshChange.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FMeshChange() |
Changes/MeshChange.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| DynamicMeshChange | TUniquePtr< UE::Geometry::FDynamicMeshChange > | Changes/MeshChange.h | ||
| OnChangeAppliedFunc | TFunction< void(FMeshChange *, UObject *, bool)> | This function is called on Apply and Revert (last argument is true on Apply) | Changes/MeshChange.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ApplyChangeToMesh
(
UE::Geometry::FDynamicMesh3* Mesh, |
Apply embedded DynamicMeshChange to given Mesh. | Changes/MeshChange.h |
Overridden from FMeshRegionChangeBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ProcessChangeVertices
(
const UE::Geometry::FDynamicMesh3* ChangedMesh, |
FRegionMeshChangeBase API builds an array of all vertices changed and passes to the ProcessFn lambda | Changes/MeshChange.h |
Overridden from FChange
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Apply
(
UObject* Object |
Makes the change to the object | Changes/MeshChange.h | |
virtual void Revert
(
UObject* Object |
Reverts change to the object | Changes/MeshChange.h | |
virtual FString ToString() |
Describes this change (for debugging) | Changes/MeshChange.h |