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

Creating a Spine object without adding it to the scene results in Spine atlas PNG being displayed #6362

Closed
frissonlabs opened this issue Jan 23, 2023 · 1 comment
Labels
🐛 Spine An issue arising from the Spine runtime

Comments

@frissonlabs
Copy link

frissonlabs commented Jan 23, 2023

Version

  • Phaser Version: 3.60.0-beta.18
  • Operating system: MacOS
  • Browser: Chrome & Safari (only ones I've been able to test)

Description

IF an image is added as an image, sprite, or tile sprite
AND THEN, using setTimeout, a Spine game object is created but not added to the scene (via scene.make.spine with addToScene set to false),
THEN the Spine atlas PNG image will replace the initial image.

Note: This also happens for a frame when addToScene is set to true OR when using scene.add.spine instead of scene.make.spine.

Example Test Code

CodePen

Additional Information

Expected:
Screenshot 2023-01-23 at 2 48 35 AM

Current:
Screenshot 2023-01-23 at 2 48 19 AM

@photonstorm photonstorm added the 🐛 Spine An issue arising from the Spine runtime label Jan 26, 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