Think of IEnumerators as methods that are sorta just like engines that someone has to switch on and run.
That someone could be you, or it could be StartCoroutine(), or it could be nodody runs that engine at all.
Coroutines in a nutshell:
Splitting up larger tasks in coroutines:
Coroutines are NOT always an appropriate solution: know when to use them!
Our very own Bunny83 has also provided a Coroutine Crash Course:
https://answers.unity.com/questions/1749615/coroutines-ienumerator-not-working-as-expected.html?childToView=1749714#answer-1749714
1 Like