Generate a recast graph per scene, and connect them using Link2

I want to generate a recast graph on a per scene basis, as I’m designing each unique level in my game to be its own scene. I’ve created 2 levels, and generated a recast graph on each. Then I additively load them beside each other. Each level has placed Link2 objects leading to where the other levels is. However, the issue is that when a second recast graph is present (the AStarPath component), it gets disabled and there’s a warning stating 2 cannot exist at once. How could I accomplish this setup in the intended way for this asset?

  • A* version: 5.4.4
  • Unity version: 6000.2.6f2 (4a4dcaec6541)

Are your worlds at all procedural? If not you may be able to cache/save the graphs for your levels to a file and load them additively when needed. So all your graphs are in your main scene but just work as if it was added with the scene when loaded.

1 Like

Thanks for the suggestion! I implemented this, and its working exactly like how I needed.

1 Like