csharp
public readonly record struct NavMesh.NeighbourWhat a polygon is next to, and across which part of which of its edges.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (5)
public NavPolyRef ReferenceThe neighbouring polygon.
public int EdgeThe edge of the polygon being asked about.
public float MinWhere the shared part of that edge starts, as a parameter along it.
public float MaxWhere it ends. An interior neighbour shares the whole edge, so 0 and 1.
public bool IsOffMeshWhether it is reached by using a connection rather than by crossing an edge, in which case Edge is NoEdge and there is nothing to walk across.
Methods (1)
public Neighbour(NavPolyRef Reference, int Edge, float Min, float Max, bool IsOffMesh = false)What a polygon is next to, and across which part of which of its edges.
Used by (3)
- NavMeshDebugDrawVixen.Navigation
- NavMeshQueryVixen.Navigation
- NeighbourEnumeratorVixen.Navigation