UpdateFindPath(int, out int)
Continues a path search that is in progress.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Experimental.AI
- Assembly: UnityEngine.AIModule
UpdateFindPath(int, int)
public PathQueryStatus UpdateFindPath(int iterations, out int iterationsPerformed)
Parameters
Returns
Type | Description |
|---|---|
| PathQueryStatus | |
Remarks
The operation needs to have been initialized previously with NavMeshQuery.BeginFindPath and it will run until the entire route is found or the specified number of iterations have been executed.
As long as the previous call returned a state of this method can be called repeatedly, across different frames, until the operation is successful. Use NavMeshQuery.EndFindPath afterwards to prepare the path data for retrieval, along with the number of contained nodes.
InProgressAdditional Resources: PathQueryStatus.