How to Display Graph In-Game

  • A* version: 5.2.5
  • Unity version: 6000.0.26f1

The Recast Graph is currently visible only within the Scene view.
I want to show the graph to users in-game. How can I achieve this?

I did a quick search and found this information:

Astar uses Aron’s other asset, ALINE to draw its gizmos. One of ALINE’s features is that it can be rendered in build, too.

(I am fuzzy on if you’d need ALINE to do what you’re trying to do here, or if just using AstarPath.DrawGizmos’s code would suffice. Tagging @aron_granberg for clarity on that one)

1 Like

Hi

There’s no built-in method to do this, I’m afraid.
But you can take a look at the NavmeshBase.OnDrawGizmos method. You can most likely modify that code to help you do what you want.

1 Like