Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetEngine > API/Plugins/ChaosClothAssetEngine/FClothEngineTools
Description
Create a new SimAccessoryMesh by copying the SimMesh data from one collection into another. Optionally use SimImportVertexID to match data rather than a straight copy of SimVertices3D. Any unmatched vertices will copy the data from the existing Sim Mesh. Returns the newly created accessory mesh's index
| Name | CopySimMeshToSimAccessoryMesh |
| Type | function |
| Header File | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Public/ChaosClothAsset/ClothEngineTools.h |
| Include Path | #include "ChaosClothAsset/ClothEngineTools.h" |
| Source | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Private/ChaosClothAsset/ClothEngineTools.cpp |
static int32 CopySimMeshToSimAccessoryMesh
(
const FName & AccessoryMeshName,
FCollectionClothFacade & ToCloth,
const FCollectionClothConstFacade & FromCloth,
bool bUseSimImportVertexID,
FText * OutIncompatibleErrorDetails
)