Moving a Nav Mesh + Enemy Character during gameplay

Hello,

I have an Enemy (Character BP Class), a mesh (simple cube), and a nav mesh volume covering that cube. In my level graph, I have a ‘‘Set relative Location’’ node that moves the cube somewhere else in the scene during game play.

Even though the character and the nav mesh volume are children of the cube, when the cube moves, the nav mesh volume and character don’t. If I delete the nav mesh volume, the character moves without any problem, so I know the character isn’t the problem.

I tried setting the runtime generation of the nav mesh volume to ‘‘Dynamic’’ and ‘‘Dynamic modifiers only’’ in the project settings, but it still doesn’t move. All components are set to ‘‘Movable’’ (not static), except for the RecastNavMesh-Default that gets created automatically when adding a volume, which doesn’t have that option.

What am I doing wrong? Or is moving a nav mesh during gameplay not doable?

Alright, so after pressing P while selecting the nav mesh while playing, I am able to see in green the area affected by the nav mesh. It works well when I launch the game, but as soon as the mesh moves, the nav mesh volume actually moves with it, but it no longer shows green on the cube. Which means the RecastNavMesh-Default does not follow. It still affects the area where the cube used to be (that area is green).

When I inspect the RecastNavMesh-Default while in play, and change its location on X (let’s say I add 2000), I can see the green area moving as intended.

What I need is to move the RecastNavMesh-Default with it’s own ‘‘Set Actor Location’’, but when I drag from it in the graph, there is no node that allows me to move it while in play.

Is there a way to do that?