Assets/Scripts/MapEditor/MapEditorGUI.cs(170,170): error CS1526: A new expression requires () or [ ] after type
Assets/Scripts/MapEditor/MapEditorGUI.cs(170,170): error CS8032: Internal compiler error during parsing, Run with -v for details
for (int i = SizeXint * SizeZint; i>0; i--)
{
[COLOR="seagreen"]//line 170 is this below[/COLOR]
Instantiate (Groundchunk, new Vector3 ((SizeXint-1)*(-3)/2 + Mathf.FloorToInt((i-1)/SizeXint)*3, 0, (SizeZint-1) * 3/2 - 3 * (Mathf.FloorToInt(i/)+1)), Quaternion.identity);
}
I’m making mapeditor and this code should make GROND PLANES as many of them as builder wants
so the planes are cubes → scale x:3 y:1 z:3
SizeXint is number of planes in x direction
SizeZint is number of planes in z direction
“i” is total number of planes
so builder can change X and Z number but code should automaticly generate planes and set their positions so they are next to each other and they form a square and center of square is 0,0,0 in world