Can i modify connection struct

I want to use custom graph in a 2d platform game,i need more property in the connection struct,such as inCommingCost,outCommingCost

Hi

Sorry, it is not possible to extend the connection struct. But connections can already have different costs in different directions. If you are using a custom graph, make the connection from A to B have one cost, and the connection from B to A have a different cost.