I’m trying to fill a 100 by 100 square with blocks but when i do this it crashes my unity.
var Land : GameObject;
function Start () {
}
function Update () {
for(var x : int = 0; x < 100; x++)
{
for(var y : int = 0; y < 100; y++)
newObject=Instantiate(Land);
Land.transform.position = Vector3(y, 0, x);
}
}