Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add getLoader method to SpineLoader, export atlas and spine loaders #525

Closed
wants to merge 1 commit into from

Conversation

f0nar
Copy link

@f0nar f0nar commented Oct 24, 2023

Solve issue #522

Add ability to use pixi-spine with pixi.js-legacy by loaders exporting, so you can register them in correct context

import * as PIXI from "pixi.js-legacy";
import { SpineLoader } from '@pixi-spine/loader-uni';
import { spineTextureAtlasLoader } from '@pixi-spine/loader-base';

PIXI.extensions.add(spineTextureAtlasLoader);
PIXI.extensions.add(new SpineLoader().getLoader());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant