How to change connection (four to eight) in runtime with script.(sorry for bad english )

AstarPath.active.data.gridGraph.neighbours = NumNeighbours.Eight;

1 Like

AstarPath.active.data.gridGraph.neighbours = NumNeighbours.Eight;
AstarPath.active.Scan();

Thank you!!!
But
No obstacle detected when scanning.Can you help me?

It’s very hard to help without any additional details.