arcbox 1 Posted April 3, 2014 Report Share Posted April 3, 2014 Hello, I'm trying to implement some retry logic for when Loader fails to load an asset. Currently I've extended the Loader class, and I'm playing around with altering the fileError method to retry downloading the same asset if it fails, but I'm not quite sure what to add here. Has anyone done anything like this before? Thanks! Quote Link to post Share on other sites
Ilianka 0 Posted September 14, 2016 Report Share Posted September 14, 2016 2 years later, I came across the same need for Loader retry. A good solution seem to be to implement your own logic for keeping track of assets and updating them by subscribing to the 'load' and 'error' events. Then, at the end of the loader queue, create a new Loader, add only the failed assets and call load(). Alternatively, in case you want to retry for each asset immediately on fail, it may be possible to call directly the Resource's load function, but I haven't tested it and doesn't seem like a good solution. Quote Link to post Share on other sites
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.