Navigation
API > API/Plugins > API/Plugins/PCGGeometryScriptInterop > API/Plugins/PCGGeometryScriptInterop/UPCGDynamicMeshData
Description
Initialize the dynamic mesh data from an input dynamic mesh object. If the input dynamic mesh is not meant to be re-used after this initialization, you can set Can Take Ownership to true. Be careful as it will put the previous object in an invalid state. You can also pass an array of materials that correspond to the referenced materials in the dynamic mesh.
| Name | K2_Initialize |
| Type | function |
| Header File | /Engine/Plugins/PCGInterops/PCGGeometryScriptInterop/Source/PCGGeometryScriptInterop/Public/Data/PCGDynamicMeshData.h |
| Include Path | #include "Data/PCGDynamicMeshData.h" |
UFUNCTION (BlueprintCallable, Category="DynamicMesh",
Meta=(DisplayName="Initialize", AutoCreateRefTerm="InMaterials"))
void K2_Initialize
(
UDynamicMesh * InMesh,
const TArray < UMaterialInterface * > & InMaterials,
bool bCanTakeOwnership
)