How can I create a grid for a Leveleditor?

Hello,

I want to make a grid, but the instantiated grid-prefabs are not aligning right next to each other, they are overlapping:

for(var x : int = 0; x < sizeX; x++){
    for(var y : int = 0; y < sizeY; y++){
		gridClone = Instantiate(grid, Vector3.zero, Quaternion.identity);
		gridClone.transform.position = Vector3(x,0,y);
	}
}

Nevermind, I have found a solution:

for(var x : int = 0; x < sizeX; x++){
	for(var y : int = 0; y < sizeY; y++){
		gridClone = Instantiate(grid, Vector3(x*24,0,y*24), Quaternion.identity);
	}
}

}

Note that 24 is the width/height of the grid prefab.