What is the difference between “yield return 0” and “yield return null” in Coroutine?

前端 未结 2 1032
深忆病人
深忆病人 2021-02-13 12:49

I\'m new and a bit confused about \"yield\". But finally I understand how it worked using WaitForSeconds

but I can\'t see the difference betwee

2条回答
  •  天涯浪人
    2021-02-13 13:20

    You could even just "yield return;" i think,the end result is the same, regarding the coroutine;

    Yield return is like saying "Return control now to the caller, but when i am called again continue from my previous state"

提交回复
热议问题