Class NavMeshLink
Component used to create a navigable link between two NavMesh locations.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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 |
---|---|
agentTypeID | Gets or sets the type of agent that can use the link. |
area | The area type of the link. |
autoUpdate | 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. |
costModifier | Gets or sets a value that determines the cost of traversing the link. |
endPoint | Gets or sets the position at the middle of the link's end edge. |
startPoint | 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 |
---|---|
UpdateLink() | Replaces the link with a new one using the current settings. |