Hello, I have a loop and i want to make some clones as children of gameObject "spawnpoint" within the loop.
I have read alot of topics and tried lines like this:
asked Aug 07 '11 at 10:39 AM
You need to change this
to something more like this
Also, as a side note, DO NOT use GameObject.Find() in a loop or an Update function if you can avoid it. Before the loop starts, call find ONCE and store it's result into a var, and then just use that var directly.
answered Aug 07 '11 at 11:22 AM