Hello!
I am trying to update penalty of my node
AstarPath.active.AddWorkItem(
() =>
{
// Safe to update graphs here
GraphNode node = currentGridGraph.GetNearest(transform.position).node;
node.Penalty = 5000;
}
);
It doesn’t work, I can see all nodes green in the debug mode. Howether, if I try to set node.Walkable = false; it works perfect. I don’t get it