nsd Posted May 14, 2014 Share Posted May 14, 2014 Hi guys, Quick question: Is there a way to know when the PIXI.AssetLoader class has failed to load a texture? I'm writing a preloader that reports missing assets and just by looking at the AssetLoader source, I can't find a way to react to errors. Thanks! Quote Link to comment Share on other sites More sharing options...
Eugenius Posted May 14, 2014 Share Posted May 14, 2014 please don't tell him he's a failed child Quote Link to comment Share on other sites More sharing options...
xerver Posted May 14, 2014 Share Posted May 14, 2014 Sounds like a PR! You could handle the error similarly to the load event (https://github.com/GoodBoyDigital/pixi.js/blob/master/src/pixi/loaders/AssetLoader.js#L137), and echo out an error event. 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.