Hi, Im using the NavMesh components and I have some different baked navmeshes for each type of agent. At certain moment I need to get the closest point to one object(which is outside the navmesh). The problem is that I don’t know how to specify which navmesh I want to use (or the agent, which is related to a navmesh)
It seems this isn’t possible, Navmesh.GetClosestEdge is a static method, meaning you can’t specify a specific sub-mesh, and the only filter useable is an areamask which would affect all separate NavMeshes.
What are you trying to do? Perhaps there is a workaround.
Thanks for the answer. Actually I solved it using SamplePosition + filter.