Cancel loading?

Hello guys,

I have an app that have a lot of runtime dynamic loading. Is there a way to cancel a file that start loading?

Loading as been triggered like this:

texture.ready(onTextureReady);
app.assets.load(texture);

Thanks!

Mykel

Not at the moment, no. Your best workaround here is to add an unload function to the ready callback if you want to ‘cancel’ it.

There’s a couple of tickets around this but it isn’t as straightforward as I would like it to be to implement:

1 Like