kittykatattack / learningPixi

A step-by-step introduction to making games and interactive media with the Pixi.js rendering engine.
4.4k stars 851 forks source link

Using Loader always returns undefined for texture #166

Closed biom4st3r closed 2 years ago

biom4st3r commented 2 years ago

I was following along with the readme, but whenever i use Load.shared.add(...).load(()=>{}) attempted the retrieve the texture with Loader.shared.resources[...].texture always returns undefined. When I check in the console .texture has a value so i'm confused

The only thing i could get to work is storing a reference to Texture.from(...), but I'm not sure if that actually loads the texture to the GPU

test.zip example of it returning undefined