Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetEngine > API/Plugins/ChaosClothAssetEngine/FClothEngineTools
Description
Return a cook-trimmed copy of a cloth collection, or the cloth collection itself when trimming is disabled. Falls back to the input collection when p.ClothCollectionOnlyCookRequiredFacades is disabled.
| Name | TrimClothCollectionOnCook |
| 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 TSharedRef < const FManagedArrayCollection > TrimClothCollectionOnCook
(
const FString & AssetName,
const TSharedRef < const FManagedArrayCollection > & ClothCollection,
bool bLog
)
The trimmed collection, or the input collection when trimming is disabled.
Parameters
| Name | Remarks |
|---|---|
| AssetName | Label used when logging the trim result. |
| ClothCollection | Source collection to trim. |
| bLog | Pass false to avoid log entries (the cooker calls Serialize twice per package). |