Function NavmeshBase.PrepareNodeRecycling
PrepareNodeRecycling
(int x, int z, UnsafeSpan<Int3> verts, UnsafeSpan<int> tris, TriangleMeshNode[] recycledNodeBuffer)
Reuse nodes that keep the exact same vertices after a tile replacement.
Private
void PrepareNodeRecycling (
int | x | |
int | z | |
verts | ||
UnsafeSpan<int> | tris | |
recycledNodeBuffer |
Reuse nodes that keep the exact same vertices after a tile replacement.
The reused nodes will be added to the recycledNodeBuffer array at the index corresponding to the indices in the triangle array that its vertices uses.
All connections on the reused nodes will be removed except ones that go to other graphs. The reused nodes will be removed from the tile by replacing it with a null slot in the node array.
See