Graph mask on NodeLink2 only works for a single graph

  • A* version: 5.3.5
  • Unity version: 2022.3.35f1

Hi, we have two recast graphs in our scene. If I set up a NodeLink2 with one of the graphs specified in its graph mask, only agents whose seeker specifies that graph in its traversable mask will use it. That seems good.

However, if I specify either “everything” or both graphs in the NodeLink2 graph mask, the link will be included in a path ONLY from a seeker that specifies the first graph, i.e. multiple graphs do not seem to be properly supported by the NodeLink2 mask.

Obviously we can work around this but creating two node links each of which is specific to a graph, but that doesn’t seem to be the point of the graph mask?

Is this a bug and, if so, can it be fixed?

Thanks.

Hi

This is expected behavior at the moment.
The graph mask describes which graphs the link is allowed to link between. But it will always only link between two points on the navmesh (the two nodes closest to its endpoints that are on the specified graphs).

Thanks for the clarification!