Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UAnimCompress
Description
Common compression utility to retain only intermittent animation keys. For example, calling with an Interval of 3 would keep every third key in the set and discard the rest
| Name | FilterIntermittentKeys |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimCompress.h |
| Include Path | #include "Animation/AnimCompress.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimCompress.cpp |
static void FilterIntermittentKeys
(
TArray < struct FTranslationTrack > & PositionTracks,
TArray < struct FRotationTrack > & RotationTracks,
int32 StartIndex,
int32 Interval
)
Parameters
| Name | Remarks |
|---|---|
| PositionTracks | Array of position track elements to reduce |
| RotationTracks | Array of rotation track elements to reduce |
| StartIndex | Index at which to begin reduction |
| Interval | Interval of keys to retain |