See the player code here, where it calls success
and after:
EsotericSoftware/spine-runtimesblob/4.2/spine-ts/spine-player/src/Player.ts#L550-L567
if (!entry) {
will be false, because you set an entry. Next we go to } else if (!this.currentViewport) {
which is false because you set a viewport. The result is this code doesn't call play()
, which is what makes the player advance the skeleton's animation state.
It makes sense the player automatically plays if the animation
config property is set. Otherwise I'm not sure it makes sense to only play if a viewport hasn't been set. I'll bring it up with our dev team. Also, when this code doesn't call play()
, the play/pause button shows pause, which is strange.
In the meantime, try calling player.play();
.