Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/UNavigationSystemV1 > API/Runtime/NavigationSystem/UNavigationSystemV1/GetPathCost
References
Module | NavigationSystem |
Header | /Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
Include | #include "NavigationSystem.h" |
Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
UFUNCTION (BlueprintPure, Category="AI|Navigation", Meta=(WorldContext="WorldContextObject"))
static ENavigationQueryResult::Type GetPathCost
(
UObject * WorldContextObject,
const FVector & PathStart,
const FVector & PathEnd,
double & PathCost,
ANavigationData * NavData,
TSubclassOf< UNavigationQueryFilter > FilterClass
)
Remarks
Potentially expensive. Use with caution. Consider using UPathFollowingComponent::GetRemainingPathCost instead