NavMeshPath
A path as calculated by the navigation system.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Class
- Namespace: UnityEngine.AI
- Assembly: UnityEngine.AIModule
public sealed class NavMeshPath
Remarks
The path is represented as a list of waypoints stored in the NavMeshPath.corners array. These points are not set directly from user scripts but a NavMeshPath with points correctly assigned is returned by the NavMesh.CalculatePath function and the NavMeshAgent.path property.
Constructors
Constructor | Description |
|---|---|
| NavMeshPath() | NavMeshPath constructor. |
Properties
Property | Description |
|---|---|
| corners | Corner points of the path. (Read Only) |
| status | Status of the path. (Read Only) |
Methods
Method | Description |
|---|---|
| ClearCorners | Erase all corner points from path. |
| GetCornersNonAlloc | Calculate the corners for the path. |