Navigation
API > API/Plugins > API/Plugins/ChaosClothAssetEngine > API/Plugins/ChaosClothAssetEngine/UChaosClothAssetBase
Description
Create a transient asset with render data built from the source asset's simulation models. Used for preview rendering when an asset has no render data, or for rendering the sim model specifically (e.g. Cloth3DSimView).
| Name | CreateSimModelPreviewAsset |
| Type | function |
| Header File | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Public/ChaosClothAsset/ClothAssetBase.h |
| Include Path | #include "ChaosClothAsset/ClothAssetBase.h" |
| Source | /Engine/Plugins/ChaosClothAsset/Source/ChaosClothAssetEngine/Private/ChaosClothAsset/ClothAssetBase.cpp |
static UChaosClothAssetBase * CreateSimModelPreviewAsset
(
const UChaosClothAssetBase & SourceAsset,
UObject * Outer,
EObjectFlags Flags,
UMaterialInterface * Material
)
A transient asset, or nullptr if the source has no valid simulation models.
Parameters
| Name | Remarks |
|---|---|
| SourceAsset | Asset to read simulation models from. |
| Outer | The outer object for the preview asset. |
| Flags | Object flags for the preview asset. |
| Material | Material to apply. Use FClothEngineTools::GetSimPreviewMaterial() for the default. |