pixijs / spine

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

Use hackTextureBySlotName with Pixi v7 and Spine v4.1 #554

Open kfnx opened 6 months ago

kfnx commented 6 months ago

Code example: https://github.com/kfnx/meeko-dressup/blob/f29085cd02108818209652fba10dd6bddc7fac9d/hackTextureBySlotName.html#L52

Im getting this error:

Uncaught (in promise) TypeError: spine.hackTextureBySlotName is not a function

I get the code example here, and it said:

This example is for PixiJS version < 7.x

https://github.com/pixijs/spine/blob/master/examples/hack_texture.md

so the hackTextureBySlotName is still available for pixi v6, but then docs said it doesnt support spine v4.x image

https://github.com/pixijs/spine/tree/master?tab=readme-ov-file#versions-compatibility

is there a way to bring hackTextureBySlotName back in Pixi v7? cos i cannot use old spine version.