Is it possible to have nodelinks on second graph?

I have two recast graphs. Some Nodelink2 are in the scene and these work fine on the first graph. I can never get any links to affect the second graph. Everything else including navmesh cuts works fine. Is there any way to add or share Nodelink2 to a second graph?

I appreciate the answer might be a simple no. I am hoping to confirm either way before planning next steps in my project. Thanks!

Hi

Are the graphs overlapping? The NodeLink2 will use the closest node it can find on any graph.

The two graphs are essentially the same except for different agent heights. I have one agent that only uses one of the graphs and another agent that only uses the other graph.

First Graph


Second Graph

A single “Point Graph (used for node links)” gets generated on any scans. In order on inspector - FirstGraph, Point Graph(nodelinks), SecondGraph.

Hi

Right now I’m afraid the NodeLink2 script does not support setting which graph they use. You can modify that script to add a graph mask though. I don’t think it should be too hard.

I did find out how to change the bitmask in Nodelink2 - nn.graphmask. I can set a single bit and force it to use one particular graph ok as you mention. My problem is that I want to have Nodelink2’s on more than just one graph. Any recommendations on where to start to achieve this?

Was not thinking hard enough… There seems to be a simple solution using just the bitmask. Simply add extra NodeLink2’s for each graph you want. Then use a public bitmask field and set in the inspector. Each bitmask will have a single bit set so that it just searches the one graph. Would be nice if this was built in and not too hard too implement (wink). Thanks for the help.