Hi,
I'm trying to get my Spine animation to play on a canvas.
If I select the "Starting Animation" from the inspector I can get the animation to play.
However I want to use code to start the animation. I've tried this line below but it doesn't seem to work.
itemImage.GetComponent<SkeletonGraphic>().AnimationState.SetAnimation(0, "animation", true);
Also is this how you'd stop the animation?
itemImage.GetComponent<SkeletonGraphic>().AnimationState.ClearTrack(0);
Thanks.
-Kelvin