List doesn't want add more than one instantiated prefab?

Line 49 starts the coroutine, which only runs until the first yield. (see below for more).

That means it only gets one item in before line 50 runs.

Perhaps put Randomize inside your coro?

Here’s more reading:

Coroutines in a nutshell:

Splitting up larger tasks in coroutines:

Coroutines are NOT always an appropriate solution: know when to use them!

“Why not simply stop having so many coroutines ffs.” - orionsyndrome on Unity3D forums

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

2 Likes