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