I have a script to automatically build a series of GridGraphs for me and I’m having some issues figuring out how to access a few parameters that are available in the UI.
The first is “Use 2D” for the GridGraph, not the GraphCollision. If all this does is rotate the X Vector by 90, that’s fine, I can do that without a problem and am doing it now. If it does something else, the ability to access it would be great.
Secondly, and more important, I can’t seem to find an exposed variable or function that changes the default node connections from 8 to 4 for GridGraphs. If I’m just missing it, please let me know. If not, where is it set so that I can just go into the code and expose it and can you please expose it going forward?
EDIT: Nevermind on the second part. The Connections count is accessible as
gg.neighbours = NumNeighbours.Four;