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

Add names to load parsers #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

UlyssesZh
Copy link

I think this is a fair enough change? It is simple enough, so I did not open an issue but opened a pull request directly.

Sometimes I need to specify the load parser explicitly when using Assets.load, but it is difficult in Node.js because those extension load parsers in @pixi/node do not have names. This pull request fixes this problem.

@unic8s
Copy link

unic8s commented Oct 10, 2024

@UlyssesZh your PR just pointed me in the right direction. I stumbled over the load naming issue today and I was very suprised that not all parsers were available as in "normal" PIXI.

My suggestion would be to stick to the original names so JS code will be compatible with both version:
e.g. loadNodeTexture should still be loadTextures

Really appreciate your inspection and work on that - thanks!

@UlyssesZh
Copy link
Author

My suggestion would be to stick to the original names so JS code will be compatible with both version.

Good suggestion, but there are possible counterarguments to this. Let's wait for opinions from other contributors or project owners.

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.

2 participants