• Unity
  • How to split up / define animations?

Hi.

I've made a character and animated it in spine, and all is fine there. But when I import it into unity [JSON export] and instantiate the SkeletonData and tap on the Animations Skeleton Pose button, nothing happens. nothing happens either when I click on the play default animation button in the Inspector.

When I hit play in editor though, it does play all the animations/timeline in a row.

I hope this makes sense to someone. Any help would be appreciated!
Thanks

Related Discussions
...

Hi and welcome! 🙂

FlyingPuppy a écrit

But when I import it into unity [JSON export] and instantiate the SkeletonData and tap on the Animations Skeleton Pose button, nothing happens. nothing happens either when I click on the play default animation button in the Inspector.

How did you instantiate the SkeletonDataAsset? Did you drag the SkeletonDataAsset into a scene and then select SkeletonAnimation, SkeletonGraphic or SkeletonMecanim?

What do you mean by the Animations Skeleton Pose button and the play default animation button? If you could please add a screenshot about which buttons you are referring to, that would be great.

Ah, yes I should have included that. I had dragged it into the scene and clicked SkeletonAnimation.

Here's a picture of what I meant. Does everything look normal?

Ok, now I understand. You are talking about the SkeletonData asset inspector preview, not the scene instance. At first I was confused since you mentioned "after instantiation".

It should play any animations in the preview window as well, we have not yet encountered this problem. Which version of the spine-unity runtime are you using (the name of the unitypackage)?

Thanks for the reply! I noticed the preview play button was missing too. I'm using this package "spine-unity-3.8-2019-08-06.unitypackage". If it matters, when I click on the Name/Animation play button, it turns red and it drops that red line in the preview window, but nothing else happens. I'm using Spine Essentials v 3.8.58

I tried it in both Unity 2019.1.0f2 and 2019.1.8f1 with no success. I take it it should work regardless of unity version? I'll try to download an older version of Spine and see if the problem goes away.

I'll be back!


I'm back - I tried Spine 3.8.55 and the same thing happened in unity.

Hehe, thx Nate 😉!

Really interesting how this could go unnoticed.
But I have just committed a bugfix and new unitypackages have been released.

You can download them here as usual:
Spine Unity Download

Sweet! Thanks, you guys fix bugs faster than unity. lol

But still, when I click on the Animations/Setup Pose button, nothing happens... and its in here that I could define the keyframes for separate animations, right?

Where could I download the Spine beta? I've got the spine-beta-unity-runtime-3.9.x already, but I think I'd need to have the application in beta too. I tried from the hub but it just recommends 3.8.59?

Thanks,
FlyingPuppy

Did you update to the unitypackage spine-unity-3.8-2019-08-09.unitypackage? The current package on the server works for me and has the bug fixed, I just tested with Unity 2019.2.

Regarding beta Spine Editor versions: you can enable Beta Updates in the Spine Settings - Application window.

However, currently there is no Spine 3.9-beta version released yet, you can currently use Spine 3.8 with the 3.9-beta runtime (which is only due to the fact that 3.8 and 3.9-beta has not yet diverged, but will in the future).

Did you test the bugfix with the 3.8 or 3.9-beta runtime?

But still, when I click on the Animations/Setup Pose button, nothing happens... and its in here that I could define the keyframes for separate animations, right?

I don't know what you mean by define keyframes for separate animations, could you please explain this in other words?

Anyway, the play buttons only allow you to play back your animations and inspect your content and shows event locations, but it does not allow you to set anything up.

Problem solved! Spine User Guide - Views (Animations) - YouTube had not yet watched the intro videos and got stuck. I was an idiot and didn't realize there is an animations tab in Spine for each individual animation you make. I assumed you just stuff everything into the initial timeline and sort it out later in Unity [like; frame 1-10 idle, frame 10-18 walk cycle, etc]. I did try the 3.8 package and fixed the preview bug, all is well that ends well.

Thanks for your help!

Glad to hear, thanks for letting us know!