NodeInGridIndex documentation incorrect for LayerGridGraph?

Property Documentation

int NodeInGridIndex
The index of the node in the grid.

This is x + zgraph.width **(+ ygraph.width*graph.depth if this is a LayerGridGraph)**

Is the documentation correct regarding the LayerGridGraph?

The actual code in LayerGridGraphGenerator.cs does not include + ygraph.widthgraph.depth:

node.NodeInGridIndex = z*width+x;

1 Like

Hi

Thanks!
Yes that was indeed incorrect. The fix will be included in the next update.