MegaMarkHarris Posted February 11, 2015 Share Posted February 11, 2015 Hey all, I've been searching but not really finding an answer. The PixiJS Asset loader says: "Once the assets have been loaded they are added to the PIXI Texture cache and can be accessed easily through PIXI.Texture.fromImage() and PIXI.Sprite.fromImage()" So if I want to use an external loader, is it cool for me to stick things in the cache myself? Maybe like this: PIXI.TextureCache[textureName + '-' + i] = texture;? Thanks! Quote Link to comment Share on other sites More sharing options...
rich Posted February 11, 2015 Share Posted February 11, 2015 Yeah of course it is! Just be sure to create what Pixi needs (BaseTexture + Texture) Quote Link to comment Share on other sites More sharing options...
MegaMarkHarris Posted February 11, 2015 Author Share Posted February 11, 2015 Thank you for the quick reply! Worked like a charm! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.