How to combine NavigationPolygon with TileMap for use with Navigation2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bloqm

In theory you could have a Navigation2D node with several children, each with different navigation data that add together.
However that only happens with nodes of the same type–you can layer several TileMaps and it works as expected, becoming a seamlessly path-findable area. But when you use both types of nodes, it simply doesn’t work; if you try to pathfind outside a polygon into a tiled area, the path stops at the polygon edge.

I’ve tried everything: snapping the polygon pixel-perfectly to the tileset grid, overlappingthe polygon and the tiles… nothing.

Any ideas?

Thanks!