Navigation
API > API/Plugins > API/Plugins/CustomizableObject > API/Plugins/CustomizableObject/IMutableClothingModule
Description
Updates in-place the InSimulationLODIndex of InOutClothingAsset physics mesh to conform to InOutAttachedLODsRenderData. Remaps InOutAttachedLODsRenderData indices to be valid after the modifications have been applied.
NOTE: After calling UpdateClothSimulationLOD LOD transition mapping may contain invalid data if any modification has taken place. In that case, FixLODTransitionMappings() must be called after all InOutClothingAsset LODs have been updated.
| Name | UpdateClothSimulationLOD |
| Type | function |
| Header File | /Engine/Plugins/Mutable/Source/CustomizableObject/Public/MuCO/Plugins/IMutableClothingModule.h |
| Include Path | #include "MuCO/Plugins/IMutableClothingModule.h" |
bool UpdateClothSimulationLOD
(
int32 InSimulationLODIndex,
UClothingAssetCommon & InOutClothingAsset,
TConstArrayView< TArrayView < FMeshToMeshVertData > > InOutAttachedLODsRenderData
)
true if the clothing asset has been modified, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| InSimulationLODIndex | Lod index in InOutClothingAsset to modify. |
| InOutClothingAsset | Clothing asset to modify. |
| InOutAttachedLODsRenderData | List of mapping datas for all meshes attached to InOutClothingAsset's InSimulationLODIndex. |