Hi.
I’d like to thank you for taking time to look at my post.
My problem is that the grass from the terrain is clipping into a road that I have placed in Unity, and I want to remove it from underneath the road. If that means I have to remove the grass completely, I do not mind, although I have no idea to do it, and am unsure about any scripts that link to the terrain.
Your help will be greatly appreciated.
Kind Regards.
3 Answers
3
Hold down shift when the grass brush is selected and paint over the grass
I had the same problem today. While researching it I managed to find 3 ways to do solve the issue:
- As Sarper-Soher said: press shift with detail brush selected. (This is the easiest way, but can be cumbersome and impractical for large terrains full of details).
- Select the detail texture from the Details panel by selecting the texture and pressing Edit Details… > Remove. This will remove all instances of a given texture from terrain. (The downside is you will have to recreate the configuration to paint again).
- You can do it by code with more control and with possibly using some really cool effects, as discussed in the forum: https://forum.unity.com/threads/removing-grass.74035/
A lot of unity ANONYMOUS bug on these forums … the said PRESS ShhEEEFT and mouse drag to delete it.
You can use custom raycasts with masks to detect the clicks while ignoring objects that are not required. If you can give some more information (screenshots / layout), it might be easier to suggest something. Cheers !
– snorcack