The types of nodes in the navigation data.
Geometrically, navigation data is made up of polygons and segments connected together. Polygon nodes describe the walkable surfaces that an agent moves across, while link nodes describe the point-to-point connections between two positions on those surfaces. Use NavWorld.GetNodeType to determine which of the two a given NavNode represents.
Additional resources: NavWorld.GetNodeType, NavMeshData, NavMeshLinkData
using UnityEngine; using Unity.AI.Navigation.LowLevel; public class GetNodeTypeExample : MonoBehaviour { void Update() { using NavWorld world = NavWorld.GetDefaultWorld(); NavLocation location = world.MapLocation(transform.position, Vector3.one, 0); if (!world.IsValid(location)) return; NavNodeType nodeType = world.GetNodeType(location.node); Color color = nodeType == NavNodeType.Link ? Color.magenta : Color.green; Debug.DrawLine(transform.position, location.position, color); } }