# NavMeshPath

> A path as calculated by the navigation system.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.AI](/engine/6000.3/script-reference/unityengine/ai.md)
* **Assembly:** UnityEngine.AIModule

```csharp
public sealed class NavMeshPath
```

## Remarks

The path is represented as a list of waypoints stored in the [NavMeshPath.corners](/engine/6000.3/script-reference/unityengine/ai/navmeshpath/corners.md) array. These points are not set directly from user scripts but a NavMeshPath with points correctly assigned is returned by the [NavMesh.CalculatePath](/engine/6000.3/script-reference/unityengine/ai/navmesh/calculatepath.md) function and the [NavMeshAgent.path](/engine/6000.3/script-reference/unityengine/ai/navmeshagent/path.md) property.

## Constructors

| Constructor                                                                         | Description              |
| ----------------------------------------------------------------------------------- | ------------------------ |
| [NavMeshPath()](/engine/6000.3/script-reference/unityengine/ai/navmeshpath/ctor.md) | NavMeshPath constructor. |

## Properties

| Property                                                                         | Description                            |
| -------------------------------------------------------------------------------- | -------------------------------------- |
| [corners](/engine/6000.3/script-reference/unityengine/ai/navmeshpath/corners.md) | Corner points of the path. (Read Only) |
| [status](/engine/6000.3/script-reference/unityengine/ai/navmeshpath/status.md)   | Status of the path. (Read Only)        |

## Methods

| Method                                                                                                 | Description                         |
| ------------------------------------------------------------------------------------------------------ | ----------------------------------- |
| [ClearCorners](/engine/6000.3/script-reference/unityengine/ai/navmeshpath/clearcorners.md)             | Erase all corner points from path.  |
| [GetCornersNonAlloc](/engine/6000.3/script-reference/unityengine/ai/navmeshpath/getcornersnonalloc.md) | Calculate the corners for the path. |
