Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/Components > API/Runtime/GeometryFramework/Components/UDynamicMeshComponent
References
| Module | GeometryFramework |
| Header | /Engine/Source/Runtime/GeometryFramework/Public/Components/DynamicMeshComponent.h |
| Include | #include "Components/DynamicMeshComponent.h" |
| Source | /Engine/Source/Runtime/GeometryFramework/Private/Components/DynamicMeshComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Dynamic Mesh Component")
void ConfigureMaterialSet
(
const TArray< UMaterialInterface * > & NewMaterialSet,
bool bDeleteExtraSlots
)
Remarks
Set new list of Materials for the Mesh. Dynamic Mesh Component does not have Slot Names, so the size of the Material Set should be the same as the number of different Material IDs on the mesh MaterialID attribute
Parameters
| Name | Description |
|---|---|
| bDeleteExtraSlots | if true, extra Material Slots beyond max NewMaterialSet.Num() are removed |