Flatten() public static method

public static Flatten ( TerrainData terrain, float height ) : void
terrain UnityEngine.TerrainData
height float
return void
 void OnWizardCreate()
 {
     Undo.RegisterCompleteObjectUndo(terrainData, "Flatten Heightmap");
     HeightmapFilters.Flatten(terrainData, height / terrainData.size.y);
 }
 private void OnWizardCreate()
 {
     Undo.RegisterCompleteObjectUndo(base.terrainData, "Flatten Heightmap");
     HeightmapFilters.Flatten(base.terrainData, this.height / base.terrainData.size.y);
 }