UDynamicMeshComponent::ConfigureMaterialSet

Material Set API. DynamicMeshComponent supports changing the Material Set dynamically, even at Runtime.

Choose your operating system:

Windows

macOS

Linux

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

Syntax

void ConfigureMaterialSet
(
    const TArray< UMaterialInterface * > & NewMaterialSet
)

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