• Unity
  • animation when displayed 1 time ends in setup pose???

Related Discussions
...

Hello I have a strange bug when exporting a character animation into Unity,
the looping animations are working nicely, it's displayed correctly,

However,

when displayed only 1 time (without looping) the animation ends with the setup pose....
I would like it to finish on the last frame of the Spine animation...
Am I missing something there?

How I fix that? thanks...

By default, it shouldn't. Normal behavior is that when an animation is done, nothing happens unless you tell it to.
It won't automatically reset to setup pose. Not even when you play a new animation.

(1) Check if someone added code specifically to make the skeleton return to setup pose.
(2) Check if the animation itself does not key setup pose at the end.

Hey thanks Pharan,
I used a script you wrote in order to return to setup pose between animations, because I had problems with blending between 2 animations,
(the game object was put invisible, parts showing in bad places and such when switching from one animation to another)

problem is when using this script, all animations would end up with setup pose...

So how can fix the correct way, is there some workaround?
Sorry to ask, but I am really new to this problem...

Which script is that?

Ah. I found a bug in that script. Wasting cycles for everyone. Terrible.

In either case, I think your best option is to have an animation that keys the pose you want and have that loop whenever you want your character to hold a pose. As semantically, whenever your AnimationState is not playing anything, the pose/animation is "undefined".

Ho okay Pharan, thanks for your answer,
that what we figured out actually, and for the script which version should I use, the one in the RunTime?

Feel free to use that script if it does what you want. I've already fixed the bug. The latest version is in the same link.

But if it doesn't suit you, feel free to modify it or add code external to it or use something else.
It really depends on how you're using it. If you use mixing. If you use multiple tracks. etc...

5 mois plus tard

Hi,

having the exact same issue as stated in the first post.
Animation playing once, not looped, and in the end being stuck on the setup pose.
Latest Unity Runtimes, Unity 5.4.3f1, Spine 3.5.46

Any hints?

@fwest. This is unrelated. OP was talking about an old version of AnimationState, and that's also true of the gist link.

That said, I can't replicate your problem. This is what happens and is supposed to happen:
1) New Scene
2) Add Spineboy
3) SetAnimation(0, "walk", false);
4) at the end, he holds the end pose of walk, not setup pose.

Can you start a new topic and describe your setup/code more?