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 |
bool ValidateMaterialSlots
&40;
bool bCreateIfMissing,
bool bDeleteExtraSlots
&41;
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 |