Hi,
To simplify a piece of code I would like to know if I can add custom fields, like a string or int, to a GraphNode, something like:
var gridGraphNodes = AstarPath.active.data.gridGraph.nodes;
gridGraphNodes[0].theField = "banana";
gridGraphNodes[1].theField = "banana";
gridGraphNodes[2].theField = "orange";
gridGraphNodes[3].theField = "peach";
So I can always check that custom value when going through nodes (at the moment I use the node to find the terrain on that position to check for a value, would love to check on the node directly for simplicity), Tags would work for this but I’m already using them for penalties and this is a separate logic, I can add some homebrew logic but would love to know if something is already in place so I don’t pollute the code with unnecessary logic.