Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Difference: yield WaitForFeconds() vs yield return new WaitForFeconds()

$
0
0
The question is simple. Regarding coroutines; what is the difference between using: "yield WaitForSeconds(x)" and using "yield return new WaitForSeconds(x)". The [documentation][1] uses the first one, but I see the latter being used a lot on answers, forums, and amongst co-students. [1]: http://docs.unity3d.com/Documentation/ScriptReference/index.Coroutines_26_Yield.html

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>