How to tag objects as "Unwalkable" for recast graph

Very simple.
I have a wall in my game.
No unit will ever walk on top of the wall.
Under that wall is ground.
Units walk on top of that ground.
If I have wall layer in Recast Graphs layer mask it will create navmesh where it is not needed.
If I remove “Wall” layer from Recast graphs layer mask, it will ignore it and think there isnt a wall.
Surely there is some way to tag an object to be “unwalkable”?

Hi

You can use the RecastMeshObj component. Attach it and mark the surface as unwalkable.

2 Likes