Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spine plugin function call parameter mismatch #6585

Closed
machineman1357 opened this issue Aug 16, 2023 · 1 comment
Closed

Spine plugin function call parameter mismatch #6585

machineman1357 opened this issue Aug 16, 2023 · 1 comment
Labels
🐛 Spine An issue arising from the Spine runtime

Comments

@machineman1357
Copy link

Version

  • Phaser Version: v3.60.0
  • Operating system: Windows 10
  • Browser: not specific

Description

The parameters do not line up in the line return this.setSkeleton(atlasDataKey, skeletonJSON, animationName, loop) in the spine plugin.
Here is what the called function looks like setSkeleton: function (atlasDataKey, animationName, loop, skeletonJSON).
As you can see, the parameter skeletonJSON should be at the end of the call.

Example Test Code

spine.setSkeleton("raptor", skeletonJSON, "roar", false);
This code will result in the spine not playing an animation.

@photonstorm photonstorm added the 🐛 Spine An issue arising from the Spine runtime label Aug 28, 2023
@photonstorm
Copy link
Collaborator

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Spine An issue arising from the Spine runtime
Projects
None yet
Development

No branches or pull requests

2 participants