How to get whether a certain point is in the pathfinding mesh data?

The current local obstacle avoidance cannot meet my needs, so I want to give the unit a new path to avoid obstacles at the middle distance. How can I get whether a certain point is in the pathfinding mesh data? In this way, I can check whether the new path can be walked.


AstarPath.active.GetNearest() cannot meet my needs.
Hope someone can help me.

Hi

You can use

AstarPath.active.data.recastGraph.PointOnNavmesh(myPoint, null) != null

See NavmeshBase - A* Pathfinding Project