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

Phaser 3 - load assets into cache instead directly into factory #78

Merged
merged 1 commit into from
Jan 21, 2019

Conversation

pavels
Copy link
Contributor

@pavels pavels commented Oct 23, 2018

This solves the problem when you want to load dragonbones assets in different scene than to use them in. Phaser 3 has Cache store exactly for this purpose, this uses it.

It has one problem, when you use the asset first time, it is not found in the factory instance and warning is printed into console, than if the resource is in cache, it is loaded. There is no simple way to suppress this warning, only to check if the asset is in factory before trying to load it which will result in searching for it twice.

@jcyuan
Copy link
Contributor

jcyuan commented Jan 21, 2019

thanks @pavels there will be still a few changes based on your PR, and mainly for multi-screen problem too.

@jcyuan jcyuan merged commit 8974ac7 into DragonBones:dev Jan 21, 2019
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.

None yet

2 participants