Clean Upbutton when selecting an animation in the tree:
Clicking the button deletes unnecessary keys, ie keys that do not affect how the animation looks. Fewer keys means less data, which is always good, but it can also mean fewer timelines which translates to using less CPU to apply the animation at runtime.
Here's the raptor walk animation before:
You can select multiple animations and then click
Clean Upto do them all at once. It's easy for a skeleton with a few animations to have thousands of unnecessary keys and hundreds of unnecessary timelines! Here's 22 animations from the 2D Anim Heroes project:
During normal designing of your animations, it's common to end up with some extra keys. Trying to be efficient with your keys in the beginning of a new animation can be painful, so now you can key liberally and use
There may be some rare times you don't want to use
Clean Up, such as when not using AnimationState at runtime or maybe if you programmatically find some key and change its value. For most people though,
Clean Upshould be used.
Please note: While we have tested it extensively, this is a new feature that deletes keys in your animations. Make a backup before giving it a try, and verify after
Clean Upthat your animations still work correctly both in Spine and your applications.