You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue happens if I try to load TextureAtlas with preloaded images.
For that you need to pass { images } as third parameter to Assets.add.
PIXI.Assets.add(resource.name, resource.file, { images });
const result = await PIXI.Assets.load<pixi_spine.TextureAtlas>(resource.name);
In this case as we pass images metadata to control loading pipeline so we execute this block and as images are already loaded then textures fetching is sync unlike here. It makes texture atlas to be parsed eventually and call resolve callback earlier than retval is initialized. So pixi atlas parser returns undefined which will be skipped by pipeline and replaced with raw atlas text
Reproduced on pixi.js: 7.3.0 pixi-spine: 4.0.4
The text was updated successfully, but these errors were encountered:
Issue happens if I try to load
TextureAtlas
with preloaded images.For that you need to pass
{ images }
as third parameter toAssets.add
.In this case as we pass images metadata to control loading pipeline so we execute this block and as images are already loaded then textures fetching is sync unlike here. It makes texture atlas to be parsed eventually and call resolve callback earlier than retval is initialized. So pixi atlas parser returns undefined which will be skipped by pipeline and replaced with raw atlas text
Reproduced on
pixi.js: 7.3.0
pixi-spine: 4.0.4
The text was updated successfully, but these errors were encountered: