首页 > 编程语言 > 详细

unity 中的协程

时间:2018-08-28 14:50:23      阅读:157      评论:0      收藏:0      [点我收藏+]

 

        //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));

 

 

 

unity 中的协程

原文:https://www.cnblogs.com/sweetXiaoma/p/9548107.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!