Navmesh, get path distance?

Googled unrealengine getpathlength

got https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/AI/Navigation/UNavigationSystem/GetPathLength/2/index.html

I’d suggest using that instead of asking the component to build and return the path

Eg if getpathlength < maxdist then use component to generate the path