Hi, sorry pretty new to Unity but I'll try to explain what I am trying to do.
I am trying to create a grid of 3d cubes, say 30 cubes * 50 cubes. Eventually I want to develop it so when the mouse moves over the a cube in the grid it rotates. But thats not the issue at the moment.
So my question is, simply is there an easy way to create a grid of cubes instead of doing it by hand manually?
Akin to the array tool in Cinema4D and in Actionscript 3:
public function CubeGrid(){
var rowY:Number = 0;
for (var i:int = 0; i < 190; i++) {
var myCube = new CubeMenu(["//**//"],100);
myCube.x = 0 + ((i % 10) * 200);
if (i % 10 == 0) {
rowY += 200;
}
myCube.y = rowY;
addChild(myCube);
}
Thanks in advance.
*Mods if my Tags are wrong please amend.