Loading images through WWW - how might one cancel the WWW operation once it has started? If I set the instance of WWW to null will that do it? (wondering about the ‘yield’ - or is that handled?)
Also are the WWW.error codes listed anywhere?
I think I read in the docs that WWW uses the browser to handle the call (though maybe I imagined it…). Does this also mean that any images loaded also end up in the browser cache? I ask because if I try to reload a previously loaded image within the same session, it seems to take the same amount of time as the initial load.
tx!
----Roy
It goes through the browser thus will get cached, of course your server needs to be setup to allow caching of those mime types.
Currently you cant cancel, unity automatically cancels when you close the plugin page of course.
Just wanted to bring this up but with a focus on MovieTextures.
I have a bunch of 10MB ogg movie textures I am streaming to the player (in editor and standalone, I don’t use web player).
If the user clicks on Video1 then Video2, it still seems like it is downloading Video1 in the background.
If I rapidly click on a bunch of videos they all start downloading and eventually the unity editor crashes.
I am destroying the MovieTexture itself when a new movie is loaded, but the I can’t destroy the WWW object which is the thing actually doing the downloading since Destroy doesn’t work on that object.
Any ideas?
Right now there is no way to cancel, we are planning to add this functionality in a future version.
I am just embarking on a project which fetches text, images and videos from a web server via the WWW class.
Can somebody confirm that there really is a memory leak caused by repeated calls to create a new WWW object but no disposal method available - if so then that’s going to be a problem.
Many thanks
Paul
Thinking further … does garbage collection just take care of all the old WWW objects ? … so I should just be able to ignore them ?
Paul
Once the Download completes and no one holds a reference to the WWW class it will be automatically Disposed already. So this is no problem.
Cheers Joachim,
I think I had guessed that would be the case … but it’s good know for sure. Maybe it’s just some C/Pascal past haunting me, but there’s something a bit unsettling about not explicitly tidying up after myself … but it’s certainly closer to real-life 
Paul