Skip to content

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

@kfnx

Description

@kfnx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions