Navigation
API > API/Plugins > API/Plugins/ChaosFleshEditor > API/Plugins/ChaosFleshEditor/FChaosFleshCommands
Description
Create GeometryCache asset from a cached flesh simulation.
Command invoked from "FChaosDeformableCommands.CreateGeometryCache", uses the selected Actor's FleshComponent and SkeletalMeshComponent, optionally along with a Chaos Cache Manager. Deforms the SkeletalMesh's import geometry by the cached simulation results, and stores that surface in a new GeometryCache asset. The rest collection asset on the flesh component(s) needs to contain deformer bindings for the import geometry.
| Name | CreateGeometryCache |
| Type | function |
| Header File | /Engine/Plugins/Experimental/ChaosFlesh/Source/ChaosFleshEditor/Public/ChaosFlesh/Cmd/ChaosFleshCommands.h |
| Include Path | #include "ChaosFlesh/Cmd/ChaosFleshCommands.h" |
| Source | /Engine/Plugins/Experimental/ChaosFlesh/Source/ChaosFleshEditor/Private/ChaosFlesh/Cmd/ChaosFleshCommands.cpp |
static void CreateGeometryCache
(
const TArray < FString > & Args,
UWorld * World
)
Parameters
| Name | Remarks |
|---|---|
| Args | Supported arguments: 'UsdFile ' overrides which usd file to use, rather than inferring it from a chaos cache manager. 'FrameRate 24' overrides the default 24 FPS frame rate for the output cache samples. 'MaxNumFrames |