Hello all,
We’re currently working on a Unity RTS style game which is very similar to the Age of Empires series, but we’re facing some issues with the terrain when I want to construct/place buildings on the terrain.
When we’re placing a building on the terrain, we want the grass to disappear in that area in the same shape as the building has. So for example if a building has a box shape, we remove the grass in that area.
That part isn’t the hardest. We’ve successfully achieved that behavior with colliders and code, but our problem is that we can’t reset the terrain back to its original state because the terrain system kinda has a mind of its own. The bare spots still remain after stopping the editor from playing, which is really annoying.
A different approach we’ve tried is to simply mask the grass with an invisible shader on a shape which lays on top of the grass, so it looks like grass has been cutted out within that area.
It’s an easier solution, but unfortunately it’s not looking that great, so we quickly scratched that idea again.
So if anyone has an idea or even a different approach on how to solve this issue, I would like to hear it.
We are using Unity 6 and URP, with the standard terrain tool.
