How to delete all trees at once in the editor mode?

Salut!

There are 50km*50km terrain, and a forest script sowed entire area with trees tightly.

Now the Unity has huge lags and freezes, almost denying any possibilities to work.

Attempts to erase it with DelTree (Shift-DragDrop) are in vain, since the brush is 100m100m (vs 50km50km).

Attempts to erase tree prefab from the project allows to use Unity smoothly, but the terrain still has marks for trees.

Also, replacing tree with the non-textured cube results in total freeze of Unity.

Is there any ways to delete all trees from the terrain at once?
May be there are ways to increase the del-tree brush size up to 10km*10km?

The landscape is quite complex, so recreating a new terrain is not an option.

Thank you!

What about exporting the terrain, delete current terrain, and reimport the terrain?
…I don’t know if the tree marks will remain, but it’s worth a shot.

Delete the tree model from the Terrain editor window. It will remove all instances of it. Then re-add it if you would like to redo the terrain. That simple bro.

Thank you.

Reading.

For future reference, you can just ā€œmass place treesā€ and tell it to place zero.

3 Likes

You mean re-plant zero trees?

Interesting.

This is the correct answer.

Select the terrain → Select a tree → click ā€˜Mass place trees’ → Uncheck ā€˜keep existing trees’ and set the number of trees to 0 → Click ā€˜place’

3 Likes