Navigation region when baking leaves out my navigation tiles out of the navigation polygon

Godot Version

Godot 4.6.1

Question

I am trying to make a path finding enemy which chases the player. I have a TileMapLayer which only for now has tiles with navigation layer. But still even when it has a navigation layer the NavigationRegion2D when baking the polygon it leaves out the TileMapLayer out of the polygon.

The default settings for NavigationRegion2D will parse geometry from child nodes only (Source Geometry Mode == Root Node Children).

Put the TileMapLayer under the Nav region and it will work (barring any other issues).

If you need the geometry to come from nodes elsewhere in the tree, change the Source Geometry Mode accordingly and set up a node group for them.