- Home /
Question by
BattlingBacon · Jun 04, 2015 at 02:19 PM ·
spawningyieldwaityield waitforseconds
Wait before spawning objects?
I need to spawn a tree at a spot. I need the tree to spawn anywhere from every 0.5-3 seconds. I've been having a lot of trouble getting the timer to work. I can do the rest, but I need a timer that waits 0.5-3 seconds then spawns a tree, then waits 0.5-3 seconds and spawns a tree, and does that forever. Thanks for any help!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613200618im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I make sure a resource is loaded or is instantiated? 2 Answers
[C#] yield instruction in function with return value 1 Answer
Yield to wait for delegate call 1 Answer
Coroutoutine doesnt work properly. 3 Answers
Is it possible to write a yield statement that only yields on a conditional? 3 Answers