Scan the scene afther build the procedural dungeon

I’ve made a algorithm that create a dungeon, like Rogue Legacy. I need to know if there is a way to resize the grid and scan the scene after created the dungeon. I can’t upload image because I’m new in the forum…

Hi

You can do something like this

var graph = AstarPath.active.gridGraph;
// Setup a grid graph with some values
graph.width = 50;
graph.depth = 50;
graph.nodeSize = 1;
graph.center = new Vector3 (10,0,0);

// Updates internal size from the above values
gg.UpdateSizeFromWidthDepth();

// Scans all graphs, do not call graph.Scan(), that is an internal method
AstarPath.active.Scan();
1 Like

Thank you Aron, u are the guy!