Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetEngine > API/Plugins/ChaosClothAssetEngine/ChaosClothAsset > API/Plugins/ChaosClothAssetEngine/ChaosClothAsset/UChaosClothAsset > API/Plugins/ChaosClothAssetEngine/ChaosClothAsset/UChaosClothAsset/SetReferenceSkel-
References
| Module | ChaosClothAssetEngine |
| Header | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Public/ChaosClothAsset/ClothAsset.h |
| Include | #include "ChaosClothAsset/ClothAsset.h" |
| Source | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Private/ChaosClothAsset/ClothAsset.cpp |
void SetReferenceSkeleton
(
const FReferenceSkeleton * ReferenceSkeleton,
bool bRebuildModels,
bool bRebindMeshes
)
Remarks
Set the specified reference skeleton for this cloth, and rebuild the models. Use nullptr to set to a default single bone root reference skeleton.
Parameters
| Name | Description |
|---|---|
| bRebuildModels | Whether to rebuild the mesh static models. This is always required, but could be skipped if done soon after. |
| bRebindMeshes | Bindings could be invalid after a change of reference skeleton, use this option to clear the existing binding and bind the sim and render meshes to the root bone. |