Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Animation/AnimSequenceHelpers.h |
| Include | #include "Animation/AnimSequenceHelpers.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Animation/AnimSequenceHelpers.cpp |
namespace UE
{
namespace Anim
{
namespace Compression
{
bool UE&58;&58;Anim&58;&58;Compression&58;&58;CompressAnimationDataTracks
&40;
TArray< FRawAnimSequenceTrack > & RawAnimationData,
int32 NumberOfKeys,
FName ErrorName,
float MaxPosDiff,
float MaxAngleDiff
&41;
}
}
}
Remarks
Compress the provided tracks using two methods.
Checking for uniform key data according to the provided error metrics
Setting number of scale keys to 0 if it is uniform and equal to FVector::OneVector Whether or not the operation was succesful
Parameters
| Name | Description |
|---|---|
| RawAnimationData | Set of tracks to apply the reduction to |
| NumberOfKeys | Expected number of keys for each component within the tracks |
| ErrorName | Identifier for outer callsite when failing to reduce the data |
| MaxPosDiff | Maximum positional delta when determining whether or not two positional keys are identical |
| MaxAngleDiff | Maximum rotational delta when determining whether or not two rotational keys are identical |