Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/UNavigationSystemV1 > API/Runtime/NavigationSystem/UNavigationSystemV1/GetPathLengthAndCost
References
| Module | NavigationSystem |
| Header | /Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
| Include | #include "NavigationSystem.h" |
| Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
ENavigationQueryResult::Type GetPathLengthAndCost
&40;
const FVector & PathStart,
const FVector & PathEnd,
FVector::FReal & PathLength,
FVector::FReal & PathCost,
const ANavigationData &42; NavData,
FSharedConstNavQueryFilter QueryFilter
&41; const
Remarks
Calculates a path from PathStart to PathEnd and retrieves its overestimated length and cost. potentially expensive, so use it with caution