Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor
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.
| Name | FMLDeformerGeomCacheSampler |
| Type | class |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerGeomCacheSampler.h |
| Include Path | #include "MLDeformerGeomCacheSampler.h" |
Syntax
class FMLDeformerGeomCacheSampler : public UE::MLDeformer::FMLDeformerSampler
Inheritance Hierarchy
- FMLDeformerSampler → FMLDeformerGeomCacheSampler
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const TArray< FString > & GetFailedImportedMeshNames () |
Get the array of mesh names that we cannot do any sampling for. | MLDeformerGeomCacheSampler.h | |
UGeometryCacheComponent * GetGeometryCacheComponent () |
MLDeformerGeomCacheSampler.h | ||
UGeometryCacheComponent * GetGeometryCacheComponent () |
MLDeformerGeomCacheSampler.h | ||
const TArray< FMLDeformerGeomCacheMeshMapping > & GetMeshMappings() |
MLDeformerGeomCacheSampler.h | ||
FMLDeformerGetGeomCacheEvent & OnGetGeometryCache() |
Executed when we need a pointer to the geometry cache object that we want to sample from. | MLDeformerGeomCacheSampler.h |
Overridden from FMLDeformerSampler
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual float GetTimeAtFrame
(
int32 InAnimFrameIndex |
Get the time in seconds, at a given frame index. | MLDeformerGeomCacheSampler.h | |
virtual void Init
(
FMLDeformerEditorModel* InModel, |
MLDeformerGeomCacheSampler.h | ||
virtual void Sample
(
int32 AnimFrameIndex |
Call this every time the frame changes. This will update all buffer contents. | MLDeformerGeomCacheSampler.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CalculateVertexDeltas
(
const TArray< FVector3f >& SkinnedPositions, |
Calculate the vertex deltas between the linear skinned mesh (skeletal mesh) and geometry cache. | MLDeformerGeomCacheSampler.h |