void Start()
{
Sa = GetComponent<SkeletonAnimation>();
Sa.state.SetAnimation(0, "walk", true);
}
That should make its walk animation loop, right? Yet the object only does the default animation that you can set up in the inspector. When I set the default to <none> it does nothing. Am I doing something wrong in just those 2 lines?
My second problem is that I can't find a proper beginners tutorial for Spine + Unity. Most of the tutorials you can find on youtube only cover importing assets, or mecanim/animator. I couldn't find a single one that covered SkeletonAnimation + animating through code.
I would really appreciate if anyone can steer me in the right direction on either case.
Thanks.