PIXI.loader.resources or TextureCache

Recommended Posts

So I'm not sure what the differences are between the two if any. So is it recommended to always reload images with loader rather than using fromImage?

On a non related note: I get an uncaught type error : cannot set property 'frame' of undefined. When I remove the setup call from the bottom, the error message goes away but I'm not sure why. If it ran again, shouldn't there be no errors? Thanks

Share this post

Link to post

Share on other sites

The texture cache is used to ensure that extra calls to .fromImage() don't make multiple browser requests. If you use the loader, use the loader. If you use the fromImage() methods, use those. Try not to mix them