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); }