phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Spine objects cannot have the same texture atlas filename

Open orjandh opened this issue 3 years ago • 0 comments

Version

  • Phaser Version: 3.55.2
  • Operating system: Windows 11
  • Browser: Chrome 98

Description

When using the Spine plugin, two spine files cannot have the same texture atlas png filename.

Example:

assets/spine1/skeleton.json assets/spine1/skeleton.atlas assets/spine1/skeleton.png <- same filename

assets/spine2/skeleton.json assets/spine2/skeleton.atlas assets/spine2/skeleton.png <- same filename

For some reason, the two spine game objects will now share the same texture atlas png. The atlas definition itself will be different, so it will be rendered as a chopped up Picasso-esque image.

Example Test Code

this.load.spine('spine1', 'assets/spine1/skeleton.json', 'assets/spine2/skeleton.atlas', true);
this.load.spine('spine2', 'assets/spine2/skeleton.json', 'assets/spine2/skeleton.atlas', true);

Additional Information

orjandh avatar Feb 24 '22 13:02 orjandh