unity 中的协程
2021-07-12 10:04
标签:new delay family url seconds div out ret spec unity 中的协程 标签:new delay family url seconds div out ret spec 原文地址:https://www.cnblogs.com/sweetXiaoma/p/9548107.html //The coroutine will continue after all Update functionshave been calledon the next frame.
yield return 1;
//Continue after a specified time delay, after all Update functions have been called for the frame.
yield return new WaitForSeconds(2);
// Continue after all FixedUpdate has been called on all scripts.
yield return new WaitForFixedUpdate();
// after a WWW download has completed
yield return new WWW("url");
//Chains the coroutine, and will wait for the MyFunc coroutine to complete first.
yield return StartCoroutine(LoadPic(urls));
上一篇:Java反射机制的作用?
下一篇:python学习记录(四)