UAIBlueprintHelperLibrary::GetCurrentPath

Returns a NEW UOBJECT that is a COPY of navigation path given controller is currently using.

Choose your operating system:

Windows

macOS

Linux

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/Blueprint/AIBlueprintHelperLibrary.h

Include

#include "Blueprint/AIBlueprintHelperLibrary.h"

Source

/Engine/Source/Runtime/AIModule/Private/Blueprint/AIBlueprintHelperLibrary.cpp

Syntax

static UNavigationPath * GetCurrentPath
(
    AController * Controller
)

Remarks

Returns a NEW UOBJECT that is a COPY of navigation path given controller is currently using. The result being a copy means you won't be able to influence agent's pathfollowing by manipulating received path. Please use GetCurrentPathPoints if you only need the array of path points.