UNavigationSystemV1::GetPathCost

Potentially expensive.

Windows
MacOS
Linux

References

Module

NavigationSystem

Header

/Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h

Include

#include "NavigationSystem.h"

Source

/Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp

Syntax

static ENavigationQueryResult::Type GetPathCost
(
    UObject * WorldContextObject,
    const FVector & PathStart,
    const FVector & PathEnd,
    float & PathCost,
    ANavigationData * NavData,
    TSubclassOf< UNavigationQueryFilter > FilterClass
)

Remarks

Potentially expensive. Use with caution. Consider using UPathFollowingComponent::GetRemainingPathCost instead

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss