One instance of www at a time

Is it possible to force just one instance of a www call at a time, and have each one that comes before the previous call queue up?

You can do it with a yield WaitForSeconds() which forces the code to wait for x many seconds.

However, this does not address the issue of actually waiting until the data is finished loading before moving on. If you want to do that, you essentially have 2 options that I have found…

  1. Use coroutines. http://unity3d.com/support/documentation/ScriptReference/index.Coroutines_26_Yield.html
  2. Create a callback function that uses a delegate “callback” to store the data…when the callback delegate has something in it, it will return to you with the stored data.