MoveTo stops when manually rebuilding nav system and runtime generation is Dynamic

Hi, does anyone understand this behavior?

Given:

  • Project Settings > Navigation Mesh > Runtime Generation = Dynamic
  • Input Key with function MoveMyAI() to trigger a AIController::MoveTo() or MoveToLocation() with a target location a little bit far away
  • Input Key with function RebuildMyNav() with following code
UNavigationSystemV1* NavSystem = UNavigationSystemV1::GetCurrent(GetWorld());
NavSystem->Build();

When

  • Trigger MoveMyAI()

Then

  • AI starts moving

When

  • Wait 1 second
  • Trigger RebuildMyNax()

Then

  • AI stops moving

This behavior does not happen if I configure Project Settings > Navigation Mesh > Runtime Generation = Static . If its static, the AI continues moving.

Is this normal and if yes, why?