pixijs / spine

Pixi.js plugin that enables Spine support.
Other
570 stars 217 forks source link

Bug: Code reports errors and positioning problems when using a custom image path #548

Open liny0219 opened 8 months ago

liny0219 commented 8 months ago

// packages/loader-base/src/atlasLoader.ts line 62, the value is empty due to execution order, and the variable here should be changed to resolve(newAtlas)

image

image

 Assets.load({
      src: test,
      data: {
        spineAtlasFile:
          "https://pixijs.io/examples-v7/examples/assets/pixi-spine/dragon.atlas",
        images: {
          "dragon.png": await Assets.load({
            src: "https://pixijs.io/examples-v7/examples/assets/pixi-spine/dragon.png",
          }),
          "dragon2.png": await Assets.load({
            src: "https://pixijs.io/examples-v7/examples/assets/pixi-spine/dragon2.png",
          }),
        },
      },
    }).then(onAssetsLoaded);