Pixijs 7 load texture via Asset background loading fails #9511
stevedevel
started this conversation in
General
Replies: 1 comment
-
ok folks, it was my stupidity. Asset (asset.tiles) already provides a texture from an image. So there is no need to create a texture again from that ressource. A better solution than crashing in this case could be a warning or silently skip creating a new texture in such cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting stuck on loading a texture for TilingSprite via pixi 7 Asset package. What I want to do is loading the ressource (png file) via asset loader. Then create a TilingSprite with the loaded ressource as texture. The following code will never finish:
The ressource is loaded and shown correctly by using a Sprite. How can I load textures via pixi asset loader?
A full codepen example is here
Beta Was this translation helpful? Give feedback.
All reactions