void GenerateTerrain()
 {
     terrain.enabled = false;
     // if (toolkit.heightBlendPoints == null) {
     //     Debug.Log("Setting height blend points");
     //     toolkit.heightBlendPoints = new List<float>();
     // }
     toolkit.setPerlinPreset(new TerrainToolkit.perlinPresetData("", 8, 0.5f, 4, 1.0f));
     toolkit.generateTerrain(onProgressUpdate);
     toolkit.textureTerrain(onProgressUpdate);
     toolkit.setFullHydraulicErosionPreset(new TerrainToolkit.fullHydraulicErosionPresetData("", 25, 0.01f, 0.5f, 0.06f, 0.6f));
     toolkit.erodeAllTerrain(onErosionProgressUpdate);
     // toolkit.erodeAllTerrain(onErosionProgressUpdate);
     terrain.enabled = true;
 }