Navigation
API > API/Runtime > API/Runtime/NavigationSystem > API/Runtime/NavigationSystem/UNavigationSystemV1
Description
Asynchronously looks for a path from @StartLocation to @EndLocation for agent with properties @AgentProperties. NavData actor appropriate for specified FNavAgentProperties will be found automatically
| Name | FindPathAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/NavigationSystem/Public/NavigationSystem.h |
| Include Path | #include "NavigationSystem.h" |
| Source | /Engine/Source/Runtime/NavigationSystem/Private/NavigationSystem.cpp |
uint32 FindPathAsync
(
const FNavAgentProperties & AgentProperties,
FPathFindingQuery Query,
const FNavPathQueryDelegate & ResultDelegate,
EPathFindingMode::Type Mode
)
request ID
Parameters
| Name | Remarks |
|---|---|
| AgentProperties | optional agent properties used to determine the NavData to use, only when the NavData inside the FPathFindingQuery was left empty. |
| 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 |
| Mode | switch between normal and hierarchical path finding algorithms |