I have a number of terrain pieces tiled together.
At some point I want the Destroy them with some script.
But the terrain objects themselves are all clones.
All I need is something that allows me to grab / identify the object at an X and Z position that I already know.
Destroy ( get.gameObject(x,y,z) ) ;
I realise this code above doesn’t work… but it gets my point across. Can anyone help me with this? I’ve heard about the Sphere overlap thing but it might be more complicated then I can handle. Is there any simple command?
Perhaps I could name the terrain object with their locations in their name instead and destroy them that way?