Pause and Resume with sp.Skeleton.paused
pauseAllActions() on the node does not pause a Spine skeleton. Use the paused property:
1 | const skeleton = this.spineNode.getComponent(sp.Skeleton); |
Restart with clearTrack and setAnimation
This resumes from the paused position. To stop and replay from the beginning:
1 | function stop() { skeleton.clearTrack(0); } |