Navigation
API > API/Runtime > API/Runtime/GeometryFramework > API/Runtime/GeometryFramework/UDynamicMeshComponent
Description
Compute the maximum MaterialID on the DynamicMesh, and ensure that Material Slots match. Pass both arguments as false to just do a check.
| Name | ValidateMaterialSlots |
| 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")
bool ValidateMaterialSlots
(
bool bCreateIfMissing,
bool bDeleteExtraSlots
)
true if at the end of this function, Material Slot Count == Max MaterialID
Parameters
| Name | Remarks |
|---|---|
| bCreateIfMissing | if true, add extra (empty) Material Slots to match max MaterialID |
| bDeleteExtraSlots | if true, extra Material Slots beyond max MaterialID are removed |