csharp
public struct NavMesh.NeighbourEnumeratorWalks a polygon's neighbours without allocating.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Interior neighbours first, then the links across tile borders. A polygon has at most six of the first and, in a mesh whose tiles disagree about where their border vertices are, a handful of the second.
Fields and properties (1)
Methods (2)
public NavMesh.NeighbourEnumerator GetEnumerator()So that this can be used in a foreach.
public bool MoveNext()Moves to the next neighbour.
Used by (1)
- NavMeshVixen.Navigation