Hello everyone, I want to change the animation at runtime from to
but the result return How can I fix this?
my demo repo link: https://github.com/jacattrungnc/spineAnimationDemo
Please add the following code below the line calling SetSkin():
skeletonAnim.Skeleton.SetSlotsToSetupPose(); skeletonAnim.AnimationState.Apply(skeletonAnim.Skeleton);
See the Spine Runtimes Guide for the meaning of each line: Runtime Skins - Spine Runtimes Guide: Skin changes
thanks for your reply, it worked now
I'm glad to hear that! Thank you for getting back to us 🙂