UAIBlueprintHelperLibrary::GetCurrentPath

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

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.

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