Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetTools > API/Plugins/ChaosClothAssetTools/UChaosClothAssetFactory
Description
End UFactory Interface Non-modal helper that creates a new cloth asset from a Dataflow template asset path, bypassing the template-picker dialog. Use from scripted / agent-driven flows.
| Name | CreateClothAssetFromTemplate |
| Type | function |
| Header File | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetTools/Public/ChaosClothAsset/ClothAssetFactory.h |
| Include Path | #include "ChaosClothAsset/ClothAssetFactory.h" |
| Source | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetTools/Private/ChaosClothAsset/ClothAssetFactory.cpp |
static UObject * CreateClothAssetFromTemplate
(
UClass * Class,
UObject * Parent,
FName Name,
EObjectFlags Flags,
const FString * TemplatePath,
bool bEmbedDataflow
)
Parameters
| Name | Remarks |
|---|---|
| Class | Asset class to create (typically UChaosClothAsset::StaticClass()). |
| Parent | Outer package for the new asset. |
| Name | Asset name. |
| Flags | Object flags. |
| TemplatePath | Object path of the Dataflow template to clone (may be nullptr for "no Dataflow"). |
| bEmbedDataflow | Whether to embed the Dataflow graph in the asset or keep it external. |