Function GridGraph.RecalculateAllConnections
RecalculateAllConnections
()
Recalculates node connections for all nodes in grid graph.
Public
void RecalculateAllConnections ()
Recalculates node connections for all nodes in grid graph.
This is used if you have manually changed the walkability, or other parameters, of some grid nodes, and you need their connections to be recalculated. If you are changing the connections themselves, you should use the GraphNode.Connect and GraphNode.Disconnect functions instead.
Typically you do not change walkability manually. Instead you can use for example a GraphUpdateObject.
Note
This will not take into account any grid graph rules that modify connections. So if you have any of those added to the grid graph, you probably want to do a regular graph update instead.