pixijs/spine

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

liny0219 opened this issue · 0 comments

// 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);