Spaceing out objects

How do i space out objects to form rows and columns of different objects? Say for instance that I had cubes and I wanted to place these cubes 1 meter apart to cover a whole 2-d square surface. how would I go about doing that?

2 Answers

2

There's a thing in the Asset Store, it might be called Space(?) that does all that align/arrange stuff

The Unity docs have an example at http://unity3d.com/support/documentation/Manual/Instantiating%20Prefabs.html.

That's called a nested loop. There are many non-Unity examples of them. They take a little to learn, but can be used to solve lots of grid-related problems, esp with a double-array (a 2D grid.)