UNavigationSystemV1::FindPathToActorSynchronously

Finds path instantly, in a FindPath Synchronously.

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 UNavigationPath * FindPathToActorSynchronously
(
    UObject * WorldContextObject,
    const FVector & PathStart,
    AActor * GoalActor,
    float TetherDistance,
    AActor * PathfindingContext,
    TSubclassOf< UNavigationQueryFilter > FilterClass
)

Remarks

Finds path instantly, in a FindPath Synchronously. Main advantage over FindPathToLocationSynchronously is that the resulting path will automatically get updated if goal actor moves more than TetherDistance away from last path node

Parameters

Parameter

Description

PathfindingContext

could be one of following: NavigationData (like Navmesh actor), Pawn or Controller. This parameter determines parameters of specific pathfinding query

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