Creation of new GridGraph at runtime

It has been stated that “GridGraphs can be created and added using the methods in the AstarData class (see docs).” However, I’ve been unsuccessful trying to get one created by looking at the docs. I have a purely generated level with a plane that will be used as the walk mesh and would like to create a GridGraph. What is the correct way to call the AstarData.CreateGraph(“GridGraph”) method?

– edit
Welp, the collapsed text in the docs pointed me to the correct place. An instance of this class is assigned to AstarPath.astarData, from it you can access all graphs loaded through the graphs variable. Make it sound like I hadn’t looked at the docs at all, but was scouring them before posting…

Now to figure out resizing and positioning.

Nice that you managed to solve it :slight_smile: