- Home /
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?
Answer by Owen-Reynolds · Apr 09, 2011 at 04:47 PM
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.)
Answer by DaveA · Apr 09, 2011 at 04:44 AM
There's a thing in the Asset Store, it might be called Space(?) that does all that align/arrange stuff
Your answer
![](https://koobas.hobune.stream/wayback/20220613121725im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Best way to respawn car? 0 Answers
A bit complicated instantiate question 2 Answers
Instantiate object in for loop with array 2 Answers
Instantiate without (clone) in JS. 1 Answer
Unity Frame Drop From Instantiating Prefab that has script 0 Answers