- Home /
Question by
Ujjwal_Rajput · Nov 24, 2020 at 10:11 PM ·
ienumeratoryield waitforseconds
why unity executing only one yield
trying to run this code but it only print first debug
IEnumerator play() { yield return new WaitForSeconds(0.50f); Debug.LogError("1111111111111111"); yield return new WaitForSeconds(0.50f); Debug.LogError("2@@@@@222222222222"); yield return new WaitForSeconds(0.50f); Debug.LogError("3333333333333"); }
Comment
Do you disable / destroy the gameObject holding the script running this coroutine?
How do you call your coroutine?
Also in the console verify that the "Error Pause" flag is not active
Your answer

Follow this Question
Related Questions
Why Is yield return new WaitForSeconds() not working 2 Answers
how to yield in C# 1 Answer
IEnumerator not looping correctly? 1 Answer
sprint timer 1 Answer
Coroutoutine doesnt work properly. 3 Answers