Navigation
API > API/Runtime > API/Runtime/Engine
Removes trivial frames frames of tracks when position or orientation is constant over the entire animation from the raw animation data. If both position and rotation go down to a single frame, the time is stripped out as well.
| Name | UAnimCompress_RemoveTrivialKeys |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Animation/AnimCompress_RemoveTrivialKeys.h |
| Include Path | #include "Animation/AnimCompress_RemoveTrivialKeys.h" |
Syntax
UCLASS (MinimalAPI)
class UAnimCompress_RemoveTrivialKeys : public UAnimCompress
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UAnimBoneCompressionCodec → UAnimCompress → UAnimCompress_RemoveTrivialKeys
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UAnimCompress_RemoveTrivialKeys
(
const FObjectInitializer& ObjectInitializer |
Animation/AnimCompress_RemoveTrivialKeys.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MaxAngleDiff | float | Animation/AnimCompress_RemoveTrivialKeys.h |
|
|
| MaxPosDiff | float | Animation/AnimCompress_RemoveTrivialKeys.h |
|
|
| MaxScaleDiff | float | Animation/AnimCompress_RemoveTrivialKeys.h |
|
Functions
Public
Protected
Overridden from UAnimCompress
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool DoReduction
(
const FCompressibleAnimData& CompressibleAnimData, |
Implemented by child classes, this function reduces the number of keyframes in the specified sequence, given the specified skeleton (if needed). | Animation/AnimCompress_RemoveTrivialKeys.h |
Overridden from UAnimBoneCompressionCodec
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PopulateDDCKey
(
const UE::Anim::Compression::FAnimDDCKeyArgs& KeyArgs, |
Called to generate a unique DDC key for this codec instance and input anim sequence and TargetPlatform A suitable key should be generated from: the InstanceGuid, a codec version, and all relevant properties that drive the behavior. | Animation/AnimCompress_RemoveTrivialKeys.h |