Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor
Inheritance Hierarchy
- FMLDeformerSampler
- FMLDeformerGeomCacheSampler
- FNearestNeighborGeomCacheSampler
References
| Module | MLDeformerFrameworkEditor |
| Header | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerGeomCacheSampler.h |
| Include | #include "MLDeformerGeomCacheSampler.h" |
Syntax
class FMLDeformerGeomCacheSampler : public UE::MLDeformer::FMLDeformerSampler
Remarks
The input data sampler, which is used to sample vertex positions from geometry caches. It can then also calculate deltas between the sampled skeletal mesh data and geometry cache data.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< FString > | FailedImportedMeshNames | Geom cache track names for which no mesh can be found inside the skeletal mesh. | |
| TArray< FGeometryCacheMeshData > | GeomCacheMeshDatas | The geometry cache mesh data reusable buffers. One for each MeshMapping. | |
| TObjectPtr< UGeometryCacheComponent > | GeometryCacheComponent | The geometry cache component used to sample the geometry cache. | |
| FMLDeformerGetGeomCacheEvent | GetGeometryCacheEvent | The function that grabs the geometry cache. | |
| TArray< FMLDeformerGeomCacheMeshMapping > | MeshMappings | Maps skeletal meshes imported meshes to geometry tracks. | |
| TArray< FString > | VertexCountMisMatchNames | Imported mesh names in the skeletal mesh for which the geometry track had a different vertex count. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CalculateVertexDeltas
(
const TArray< FVector3f >& SkinnedPositions, |
Calculate the vertex deltas between the linear skinned mesh (skeletal mesh) and geometry cache. | |
| const TArray< FString > & | Get the array of mesh names that we cannot do any sampling for. | ||
| UGeometryCacheComponent * | |||
| UGeometryCacheComponent * | |||
| const TArray< FMLDeformerGeomCacheMeshMapping > & | |||
| FMLDeformerGetGeomCacheEvent & | Executed when we need a pointer to the geometry cache object that we want to sample from. |
Overridden from FMLDeformerSampler
| Type | Name | Description | |
|---|---|---|---|
| float | GetTimeAtFrame
(
int32 InAnimFrameIndex |
Get the time in seconds, at a given frame index. | |
| void | Init
(
FMLDeformerEditorModel* InModel, |
||
| void | Call this every time the frame changes. This will update all buffer contents. |