NavMeshPath
A path as calculated by the navigation system.
Read time 1 minuteLast updated 8 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 _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 _path property.
Constructors
Constructor | Description |
|---|---|
| NavMeshPath() | NavMeshPath constructor. |
Properties
Methods
Method | Description |
|---|---|
| ClearCorners | Erase all corner points from path. |
| GetCornersNonAlloc | Calculate the corners for the path. |