ModelImporterAnimationCompression Manual     Reference     Scripting  
Scripting > Editor Enumerations > ModelImporterAnimationCompression
ModelImporterAnimationCompression Enumeration

Animation compression options for ModelImporter.

Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.

Compressing animations saves space in the built game, but more compression introduces more artifacts in the animations.

See Also: ModelImporter.animationCompression.

Values
Off

No animation compression.

KeyframeReduction

Perform keyframe reduction (default).

KeyframeReductionAndCompression

Perform keyframe reduction and compression.