I just upgraded my Unity project to 3.7.
My newest animation is giving me trouble.
When I call:
skeletonTop.state.SetAnimation(0, "KrakenTentacleDownTop", false);
skeletonTop.GetComponent<MeshRenderer>().sortingLayerName = "Foreground";
skeletonTop.state.AddAnimation(0, "KrakenTentacleIdleBase", true, 0f);
The "KrakenTentacleIdleBase" animation starts before the "KrakenTentacleDownTop" animation completes.
However, if I comment out the AddAnimation, the KrakenTentacleDownTop animation finishes without issue.
I've compared this by testing both while going frame by frame in Unity.
I'm not sure what to do about this, aside from switch to tracking state.Complete and then SetAnimation myself from there. I would prefer to be able to get AddAnimation to queue properly.