Support Forum

Set Layer as Unwalkable in Recast Graph

I’m going to need to set up my recast graph to also scan the props in the level so that the navmesh isn’t set to just walk through them. I have all of the props on a particular layer, and I would like to mark all of them as unwalkable during the scan so that agents can’t potentially walk on top of flat surfaces like tables. Is there a way to set some layers to unwalkable but still take them into account for the scan?


You can attach a RecastMeshObj component to your props and on that component there is an option to make the object unwalkable.