public void ClearTerrain() { while (transform.childCount > 0) { for (int i = 0; i < transform.childCount; i++) { DestroyImmediate(transform.GetChild(i).gameObject); } } elevationNoiseMap.ResetNoiseRange(); }