How to check the destination can be reached?


@aron_granberg, NNConstraint.Default).node;

this function always returns a node, is there a function that the point is not on the navmesh, it will return null.



This depends on what graph type you are using and what you mean by “on the navmesh”.
If you are using a grid graph, the easiest is to do

bool isOnNavmesh =, NNConstraint.None).node.Walkable;

Which gets the closest node and checks if it is walkable.

If you are using a recast/navmesh graph you can use the PointOnNavmesh method.

var node =, NNConstraint.Default);
if (node != null) Debug.Log("On the navmesh when seen from above");