Module |
|
Header |
/Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
Include |
#include "NavigationSystem.h" |
Source |
/Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
uint32 FindPathAsync
(
const FNavAgentProperties & AgentProperties,
FPathFindingQuery Query,
const FNavPathQueryDelegate & ResultDelegate,
EPathFindingMode::Type Mode
)
Asynchronously looks for a path from to for agent with properties . NavData actor appropriate for specified FNavAgentProperties will be found automatically
request ID
Parameter |
Description |
---|---|
ResultDelegate |
delegate that will be called once query has been processed and finished. Will be called even if query fails - in such case see comments for delegate's params |
NavData |
optional navigation data that will be used instead of the one that would be deducted from AgentProperties |
PathToFill |
if points to an actual navigation path instance than this instance will be filled with resulting path. Otherwise a new instance will be created and used in call to ResultDelegate |
Mode |
switch between normal and hierarchical path finding algorithms |