Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/UDynamicMeshComponent
Description
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
| Name | ConfigureMaterialSet |
| 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 ConfigureMaterialSet
(
const TArray < UMaterialInterface * > & NewMaterialSet,
bool bDeleteExtraSlots
)
Parameters
| Name | Remarks |
|---|---|
| bDeleteExtraSlots | if true, extra Material Slots beyond max NewMaterialSet.Num() are removed |