kule90 Posted August 21, 2023 Share Posted August 21, 2023 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: version of my Pixi.js is 5.2.1, so I have tried all versions of pixi-spine up to 3.1.2; clearing the PIXI loader using the reset() before loading resources; using new PIXI.Loader() instead Pixi.Loader.shared; making unique names for resources of Spine data, making everything async function. loading resources atlas separately before .json file. Any help is welcomed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.