In general, I want to make a roguelike, and I need the enemy who is chasing me to be able to move through different rooms that connect to each other when the location is generated, I tried to do it using NavLink, but it didn’t work
Navigation meshes merge automatically when their edges overlap exactly.
So all you need to do is make sure that the edges between two NavigationRegion2D navigation meshes overlap exactly at the room chunks transition.
I forgot to clarify, my game is in 3D
It is the same in 3D. When navigation mesh edge pairs overlap exactly they are merged together. See Connecting navigation meshes — Godot Engine (latest) documentation in English