Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/UDynamicMeshComponent
Warnings * If NewMesh is owned/Outer'd to another DynamicMeshComponent, a GLEO error may occur if that Component is serialized.
Description
Replace the current UDynamicMesh with a new one, and transfer ownership of NewMesh to this Component. This can be used to (eg) assign a UDynamicMesh created with NewObject in the Transient Package to this Component.
If NewMesh is owned/Outer'd to another DynamicMeshComponent, a GLEO error may occur if that Component is serialized.
| Name | SetDynamicMesh |
| Type | function |
| Header File | /Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h |
| Include Path | #include "Components/DynamicMeshComponent.h" |
| Source | /Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Dynamic Mesh Component")
void SetDynamicMesh
(
UDynamicMesh * NewMesh
)