Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/UNavigationSystemV1
Description
Calculates a path from PathStart to PathEnd and retrieves its overestimated length and cost. @NOTE potentially expensive, so use it with caution
| Name | GetPathLengthAndCost |
| Type | function |
| Header File | /Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
| Include Path | #include "NavigationSystem.h" |
| Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
ENavigationQueryResult::Type GetPathLengthAndCost
(
const FVector & PathStart,
const FVector & PathEnd,
FVector::FReal & PathLength,
FVector::FReal & PathCost,
const ANavigationData * NavData,
FSharedConstNavQueryFilter QueryFilter
) const