Jump to content

pixi-spine bug: Resource named "..._atlas" already exists


kule90
 Share

Recommended Posts

I have problem last 3 days, and I am not able to solve it.

Here is simplified code:
 

  PIXI.Loader.shared
    .add("spineDataName", "spine_assets/Crab.json")
    .load(onAssetsLoaded);

  function onAssetsLoaded(loader, resources) {
    const spine = new PIXI.spine.Spine(resources.spineData.spineData);
    spine.scale.set(0.5);
    this.parentContainer.addChild(spine);
    spine.state.setAnimation(0, "animationName", true);
  }

And an error in console.log that appears is always same - in this case:
plugins.min.js:1 Uncaught Error: Resource named "spineDataName_atlas" already exists.

What I have tried:

  1. version of my Pixi.js is 5.2.1, so I have tried all versions of pixi-spine up to 3.1.2;
  2. clearing the PIXI loader using the reset() before loading resources;
  3. using new PIXI.Loader() instead Pixi.Loader.shared;
  4. making unique names for resources of Spine data,
  5. making everything async function.
  6. loading resources atlas separately before .json file.

Any help is welcomed.


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...