Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetEngine > API/Plugins/ChaosClothAssetEngine/FClothEngineTools
Description
Determine if skeletal meshes on two different cloth collections are compatible (one's reference skeleton is a subset of the other). If they are, determine which skeletal mesh is the superset, and calculate remap indices that can be used to remap bone indices from the subset collection to the superset skeletal mesh.
| Name | CalculateRemappedBoneIndicesIfCompatible |
| 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 bool CalculateRemappedBoneIndicesIfCompatible
(
const FCollectionClothConstFacade & Cloth1,
const FCollectionClothConstFacade & Cloth2,
FSoftObjectPath & OutMergedSkeletalMeshPath,
TArray < int32 > & OutBoneIndicesRemapCloth1,
TArray < int32 > & OutBoneIndicesRemapCloth2,
FText * OutIncompatibleErrorDetails
)
Whether or not the collections are compatible.
Parameters
| Name | Remarks |
|---|---|
| Cloth1 | The cloth facade for the first cloth collection. |
| Cloth2 | The cloth facade for the second cloth collection. |
| OutMergedSkeletalMeshPath | The superset skeletal mesh used as reference skeleton, either Cloth1 or Cloth2's skeletal mesh path. |
| OutBoneIndicesRemapCloth1 | Remap indices to convert Cloth1 BoneIndices to OutMergedSkeletalMeshPath's ref skeleton. Empty if no remapping is required. |
| OutBoneIndicesRemapCloth2 | Remap indices to convert Cloth2 BoneIndices to OutMergedSkeletalMeshPath's ref skeleton. Empty if no remapping is required. |
| OutIncompatibleErrorDetails | optional text describing why the skeletal meshes aren't compatible (empty if no error). |