• Unity
  • Skeleton animation problem from idle to death to idle

  • Bearbeitet
Related Discussions
...

Hi, I have this problem.

Skeleton has idle animation (vertical orientation), when it dies I run DEATH animation (horizontal orientation). Then respawn gameobject with idle animation again but the skeleton is rotated to (more o less 45 degrees); in other case is correct.
Do you have any ideas?

Regards
Sesilla

We would need to know more about how you are setting animations at the skeleton, are all animations set on the same track?
Also, which version of Spine and which version of the spine-unity runtime (name of the unitypackage, also mentioned in the included version.txt file) are you using?

Does the animation look correct and is only the SkeletonUtilityBone hierarchy wrong?

Apart from the above questions: it sounds a bit as if a key that is equal to the setup pose could have been removed by having Animation cleanup enabled upon Skeleton export in the Spine Editor. Could you please check if this is the case and if disabling it fixes the issue?

Hi Harald,

sorry, you're right my question had few useful information. Although you were right, disabling Animation cleanup upon Skeleton export in the Spine Editor works fine. Is it normal?

Thank you very much
Regards
Sesilla

Glad it helped. Animation cleanup removes keys identical to the setup pose. So if you depend on these keys, it will lead to problems. It depends on the situation (how you are applying animations) whether you need keys identical to the setup pose. Also a bug related to this topic has been fixed about a month ago, so you might be missing this update.