• Unity
  • Preview Animation in Unity's Animation Window?

Related Discussions
...

Hello! I just got Spine Pro today, and I've been messing around with the Spine-Unity runtime (it's awesome btw). There's just one thing I can't seem to figure out, and it might not be possible, but I thought I'd ask anyway. Any help is greatly appreciated.

Does anyone know if it's possible to preview animations using unity's animation window? Using Spine Mecanim, I can see events and animation length in Unity's animation window, but not the actual playback. I'm planning on doing all of the sound effects and hit-boxes using playmaker events in the animation window, and previewing the animation here would be extremely useful.

I can't seem to find anyone else trying this, so I'm not sure if it's impossible, or if I'm doing something wrong.

I've attached an image of what my animation window looks like. It seems to be missing a reference, but I can't change it, so I'm assuming that's just the way it is.

Thank you.

Thanks for your kind word, glad you like the spine-unity runtime! We are sorry that the Mecanim animation previews are not working yet, unfortunately this is a known issue that still remains to be fixed.

You can find the issue ticket here where you can subscribe to receive notifications upon any progress:
[unity] Mecanim animation preview windows · #1253
We will let you know once the issue is resolved.

Ah, I see, thanks for the reply. It would be nice to preview my animations, but luckily I can see Spine events on the timeline, so I can just set up all of the timing for that in Spine; it'll be a little more work, but just as effective.

It's nice to know that this could be working in the future.

Thanks again, have a good one!

4 yıl sonra

I found a workaround to this. It's added as a comment to the github issue. Using reflection, it's not too difficult to read out the current time of the active animation window.

@AnduoGames Thanks for sharing your code, very much appreciated in general! Unfortunately we already had this part working, hence the earlier github comment mentioning that the feasible improvements will likely be limited to playing back animations from the Animation window. Very sorry that this was not clearly pointed out in the posting!

What would really be a great improvement would be if we had a way to preview transitions of the Animator (not Animation) window.

Nevertheless, this is a great reminder that we need to include the code of the old prototype in the next beta version of the spine-unity runtime, so that at least the Animation window (not Animator window) preview is played back for easier placement of manual events. Thanks for bringing this to our intention!