Class NavMeshLink
Component used to create a navigable link between two NavMesh locations.
Inherited Members
Namespace: Unity.AI.Navigation
Assembly: solution.dll
Syntax
[ExecuteAlways]
[DefaultExecutionOrder(-101)]
[AddComponentMenu("Navigation/NavMeshLink", 33)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.ai.navigation@1.1/manual/NavMeshLink.html")]
public class NavMeshLink : MonoBehaviour
Properties
Name | Description |
---|---|
agent |
Gets or sets the type of agent that can use the link. |
area | The area type of the link. |
auto |
Gets or sets whether the world positions of the link's edges update whenever the GameObject transform changes at runtime. |
bidirectional | Gets or sets whether the link can be traversed in both directions. |
cost |
Gets or sets a value that determines the cost of traversing the link. |
end |
Gets or sets the position at the middle of the link's end edge. |
start |
Gets or sets the position at the middle of the link's start edge. |
width | The width of the segments making up the ends of the link. |
Methods
Name | Description |
---|---|
Update |
Replaces the link with a new one using the current settings. |