Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Animation > API/Runtime/Engine/Animation/UE__Anim__Compression__CompressA-
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::Anim::Compression::CompressAnimationDataTracks
(
TArray < FRawAnimSequenceTrack > & RawAnimationData,
int32 NumberOfKeys,
FName ErrorName,
float MaxPosDiff,
float MaxAngleDiff,
float MaxScaleDiff
)
}
}
}
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 |