Rebaking NavRegion2Ds during runtime

Godot Version

4.2

Question

I am using NavRegion2Ds for pathing in my game; However I was wondering it’s possible to rebake the NavRegion during runtime.

much of my game relies on procedural generation and player placed tiles. Is there a way to rebake the nav regions during runtime?

also my game is based off of tile-maps.

Thx! :]

Nevermind I found it! My bad for not checking hard enough.

For anyone who ever has a similar issue just use the bake_navigation_polygon() method