private void RemoveSplatMap(int index)
{
DetailPrototype[] newPototypes = new DetailPrototype[component.TerrainData.detailPrototypes.Length - 1];
for (int i = 0, j = 0; i < component.TerrainData.detailPrototypes.Length; i++)
{
if (i == index) { continue; }
newPototypes[j] = component.TerrainData.detailPrototypes[i];
j++;
}
component.TerrainData.detailPrototypes = newPototypes;
}
private void AddSplatMap(DetailPrototype p)