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

[player] Allow loading different data files. #2506

Closed
NathanSweet opened this issue Apr 20, 2024 · 1 comment
Closed

[player] Allow loading different data files. #2506

NathanSweet opened this issue Apr 20, 2024 · 1 comment

Comments

@NathanSweet
Copy link
Member

Add a method to load different JSON/binary and atlas files.

https://esotericsoftware.com/forum/d/26038

@badlogic
Copy link
Collaborator

As discussed off GitHub, the only thing you gain is not needing to create the shaders, compared to simply instantiating a new player and swapping it for the old one in the DOM.

Allowing to load any data files at any point in time would require a significant rewrite of the player internals, which many edge cases that need to be handled, that would not occur when simply instantiating a new player.

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

No branches or pull requests

2 participants