# NavMeshLinkData

> Used for runtime manipulation of links connecting polygons of the NavMesh.

## Definition

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

```csharp
public struct NavMeshLinkData
```

## Remarks

A typical use case is to connect different navigation meshes. Use the [NavMesh.AddLink](/engine/6000.6/script-reference/unityengine/ai/navmesh/addlink.md) method to instantiate a link with these properties in the navigation system. The [NavMesh Link](https://docs.unity3d.com/Packages/com.unity.ai.navigation@2.0/manual/NavMeshLink.html) component creates its runtime data in this way.

## Properties

| Property                                                                                         | Description                                                                                       |
| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
| [agentTypeID](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/agenttypeid.md)     | Specifies which agent type this link is available for.                                            |
| [area](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/area.md)                   | Area type of the link.                                                                            |
| [bidirectional](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/bidirectional.md) | If true, the link can be traversed in both directions, otherwise only from start to end position. |
| [costModifier](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/costmodifier.md)   | If positive, overrides the pathfinder cost to traverse the link.                                  |
| [endPosition](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/endposition.md)     | End position of the link.                                                                         |
| [startPosition](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/startposition.md) | Start position of the link.                                                                       |
| [width](/engine/6000.6/script-reference/unityengine/ai/navmeshlinkdata/width.md)                 | If positive, the link will be rectangle aligned along the line from start to end.                 |
