Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Fattie · May 27, 2013 at 05:01 PM · www

StopAllCoroutines does NOT cancel a yield WWW download?

After testing,

I am almost certain that if you StopAllCoroutines,

it does not stop the actual download of say a large image, from a yield on WWW.

In fact, how do you stop a large download you have started using a yield on WWW?

Thanks....

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Julien-Lynge · May 28, 2013 at 09:56 PM 1
Share

We've never found a way. We just have a wrapper class that abandons the download and disposes of it if/when it finishes.

avatar image Fattie · May 30, 2013 at 09:33 AM 0
Share

Hey Julien, thanks for that report. Did you see this answer,

http://answers.unity3d.com/questions/465060/how-to-stop-a-www-which-is-in-progress.html

maybe the guy has the solution.

avatar image Fattie · Aug 20, 2013 at 06:10 PM 0
Share

Also ...

http://answers.unity3d.com/questions/462462/is-it-actually-true-that-stopallcoroutines-stops-w.html

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by darthbator · May 28, 2013 at 09:29 PM

I'm not sure if this is the issue but I've noticed that stopCoroutine doesn't work AT ALL if you launch the routine by directly calling the method and not by passing it the name of the method as a string. Could you be running into that issue?

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Fattie · May 30, 2013 at 09:34 AM 0
Share

Fascinating! BTW when you typed stopCoroutine did you mean StopAllCoroutines ?

I was not even aware there is a stopCoroutine ! :O

avatar image
0

Answer by Eric5h5 · May 28, 2013 at 10:42 PM

Instead of

 yield www;

do

 while (!www.isDone && someCondition) {
     yield;
     // set someCondition to false in order to abandon the download
 }
Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Fattie · May 30, 2013 at 09:33 AM 0
Share

Eric, I'm pretty sure that does not stop the download of data on the http connection.

(If I'm not mistaken, the code you present does not, in any way, affect the coroutine itself, right? In that idiom the meaning of someCondition is "when someCondition becomes true, I'll stop bothering here waiting for the coroutine and go on with what I was doing. The coroutine will take care of itself and finish and I won't wait for it no more." )

I'll triple-check though. This guys believes he has the answer, which is a breakthrough if true

http://answers.unity3d.com/questions/465060/how-to-stop-a-www-which-is-in-progress.html

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

16 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

embed google maps into unity 3d 4 Answers

Is WWW.movie supposed to be this slow? 2 Answers

json (LitJSON) from PHP array.. How? 0 Answers

WWW didnt work on device ON UNITY 3.3? 2 Answers

GM or Admin System 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges