Detect offmesh link in a path?

Hi,

My question is pretty simple: is there any way to detect if a path is using an offmesh link?
I would basically need to detect if a part of the path, between 2 corners, is an offmesh link or not…

Any idea?

Thanks!

You can use NavMeshAgent.nextOffMeshLinkData to check if there is an offmesh link in the path.