for(int j=0;j<50;j++) //y
{
for(int i=0;i<50;i++) //x
{
tile = (GameObject)Instantiate (grass, new Vector3(i,0,j), Quaternion.identity);
}
}
I need create big world with tiles. It slow ![]()
for(int j=0;j<50;j++) //y
{
for(int i=0;i<50;i++) //x
{
tile = (GameObject)Instantiate (grass, new Vector3(i,0,j), Quaternion.identity);
}
}
I need create big world with tiles. It slow ![]()
Yes, it would be since you’re making thousands of objects. You can use the Mesh class to create chunks instead; there are a bunch of topics about Minecraft-type construction that you can search.
–Eric