class
NavMeshLink
public class NavMeshLink : Component NavigationLinks connect navigation mesh polygons for pathfinding and enable shortcuts like ladders, jumps, or teleports.
Constructors
NavMeshLink() Properties
| Name | Type | Description |
|---|---|---|
LocalStartPosition | Vector3 | Start position relative to the game object's position. |
LocalEndPosition | Vector3 | End position relative to the game object's position. |
WorldStartPositionOnNavmesh | Vector3? | Start position in world space snapped to the navmesh. |
WorldEndPositionOnNavmesh | Vector3? | End position in world space snapped to the navmesh. |
Area | NavMeshAreaDefinition | The NavMesh area definition to apply to this link. |
LinkEntered | Action<NavMeshAgent> | Emitted when an agent enters the link. |
LinkExited | Action<NavMeshAgent> | Emitted when an agent exits the link. |
WorldStartPosition | Vector3 | Start position in world space. |
WorldEndPosition | Vector3 | End position in world space. |
Fields
| Name | Type | Description |
|---|---|---|
IsBiDirectional | Boolean | Whether this link can be traverse bi-directional or only start towards end. |
ConnectionRadius | Single | Radius that will be searched at the start and end positions for a connection to the navmesh. |