How to stop a WWW which is in progress?

Say you’re downloading a large image using WWW.

How do you actually stop the download ?

Note - StopAllCoroutines simply does not work.

If you set the WWW to null, that does not work.

You can’t Destroy(WWW) so that does not work.

Any ideas? Anyone?

If you want to cancel download manually on any button you can call Dispose method on your www object.

WWW w = new WWW(url);

yield return w;

and on cancel call below code

if( w != null)

I have used it in my game and it works.