Hi there, Im trying to understand yield.
I can figure what happens when I use yield FUNCTION.
The rotine will wait the FUNCTION returns before continuing.
but I cant figure what will happens if I use yield alone.
example :
function test(){
Debug.Log("First");
yield;
Debug.Log("Second");
}
The documentation (http://unity3d.com/support/documentation/ScriptReference/index.Coroutines_26_Yield.html) says that this yield is used as a special kind of return. And the next time I call ‘test’ it will run from the yield point. But thats not whats happening.
Can some one help me understand this please? ![]()