I’m following along with the navigation mesh script template on the docs which details how to update a navigation region with procedurally generated mesh data.
Run into an issue, namely calling NavigationServer3D.region_set_map(region_rid, get_world_3d().get_navigation_map()) where get_world_3d() is returning null.
The .gd class I’m calling it from extends MeshInstance3D should that matter.
The Viewport did not even have enough time to init its World3D ref or the node from where you called the script was not in the SceneTree / did not join the world.
So whatever you do don’t do it in the init() phase or on a thread on the very first frame. You need to give the SceneTree some time to setup at least the basics.