- Home /
Question by
SirBumRush · Jan 03, 2015 at 11:49 AM ·
instantiateraycastspawnprefabs
Unity2d : Spawning in Prefabs
My question is how to randomly spawn in objects on the screen with out them spawning in over each other? and if there is no room to spawn, then they wont spawn, and will wait in line or get canceled preferably?
Comment
Answer by Ekta-Mehta-D · Jan 03, 2015 at 12:00 PM
Hii..
If you have specified location than you can arrange object at those location and make array of that gameobjects.and randomly active deactive those object from the array.
Thx, that sparked some new ideas for how to do this. I'm gonna post an update later tonight with some of the code with it as well. Appreciate it m8.