UNavigationSystemV1::GetPathLengthAndCost

Calculates a path from PathStart to PathEnd and retrieves its overestimated length and cost.

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

ENavigationQueryResult::Type GetPathLengthAndCost
(
    const FVector & PathStart,
    const FVector & PathEnd,
    float & PathLength,
    float & PathCost,
    const ANavigationData * NavData,
    FSharedConstNavQueryFilter QueryFilter
) const

Remarks

Calculates a path from PathStart to PathEnd and retrieves its overestimated length and cost. potentially expensive, so use it with caution

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