Setting the connection amount at runtime?

I need to adjust a few of my grid values during runtime, one of them being the connection amount.

Is there a way I can do this? I haven’t found a way myself.


Grid connection costs are not stored per node for performance and memory reasons, however if you explicitly remove a connection between two grid nodes, you can later add it back as a custom connection using a NodeLink2 component or calling AddConnection on the GridNode class.