hi boys and girls
how do i instantiate multiple object object with line change with for loop.
i am totally noob but in documents.
for (int i = 0; i < 10; i++)
Instantiate(prefab, new Vector3(i * 2.0f, 0, 0), Quaternion.identity);
there is this.
so if i want instantiate 30 prefabs do i just
for (int i = 0; i < 3; i++)
Instantiate(prefab, new Vector3(i * 1f, 0, 0), Quaternion.identity);
for (int i = 0; i < 3; i++)
Instantiate(prefab, new Vector3(i * 1f, 1, 3), Quaternion.identity);
for (int i = 0; i < 3; i++)
Instantiate(prefab, new Vector3(i * 1f, 2, 6), Quaternion.identity);
do i do it this way or is there simpler way. and if so how do i center the prefabs.
there was this it centers the prefabs but i dont know how do i do the line change
thanks.