I receive errors in the console due to unparsed data and next object in console
As you can see that atlas is not parsed at all and spine json file is loaded as simple json and it does not have spineData property.
As I understood, problem is that pixi-spine registers its loaders not to the same extensions package that pixi.js-legacy uses.
As quick fix I exported atlas and spine loaders extensions from pixi-spine and called PIXI.extensions.add with them in my index.ts, where PIXI is pixi.js-legacy import.
FYI: The same is relevant to https://github.com/miltoncandelero/spine-runtimes/tree/spine-pixijs/spine-ts/spine-pixi
I would like to have ability to simply use pixi-spine with pixi.js-legacy or have exports in pixi-spine to register loaders manually
I cannot use
pixi.js-legacy
withpixi-spine
. If I run next code snippetI receive errors in the console due to unparsed data and next object in console As you can see that atlas is not parsed at all and spine json file is loaded as simple json and it does not have spineData property. As I understood, problem is that
pixi-spine
registers its loaders not to the same extensions package thatpixi.js-legacy
uses. As quick fix I exported atlas and spine loaders extensions frompixi-spine
and calledPIXI.extensions.add
with them in myindex.ts
, wherePIXI
ispixi.js-legacy
import. FYI: The same is relevant to https://github.com/miltoncandelero/spine-runtimes/tree/spine-pixijs/spine-ts/spine-pixiI would like to have ability to simply use
pixi-spine
withpixi.js-legacy
or have exports inpixi-spine
to register loaders manuallyYou can use my repo for testing https://github.com/f0nar/pixi.js-legacy-pixi-spine/tree/main
Duplicated from pixi issue https://github.com/pixijs/pixijs/issues/9779