Enter and TravelCost on Navigation from TileMapLayer

Godot Version

v4.5

Question

Hi everyone

I have navigation defined in TileMapLayers (the TileSet has NavigationPolygon), which I am using to define the movement path of a NavigationAgent.

Now I want to define in this Navigation an enter cost or travel cost, in order to make a particular path harder or easier to be chosen. I don’t want to disable totally the path, so does not make sense setting a collision shape to the tile.

I know that a NavigationRegion has the possibility to define the travel or enter cost, but the TileMapLayer does not make the region avilable easily (my guess is only through the NavigationServer manipulation)

Any idea how I could implement this in an easy manner without having to go through the NavigationServer manipulation?