I write a game, in the scene has 10 NPCs, and some buildings, the NPC will find that own building target and move to there, then destroy the building, but when a NPC Destroy(building), other walking NPC will stock very small time, then back normal.
The building is NavMeshObstacle, and Carve mode.
The NPC useing NavMeshAgent SetDestination(Vector3)
If you won’t be moving the building (which I am sure you won’t), you can just make the buildings navigation static and bake the scene. This will improve your performance (since Carve is really expensive) and probably will fix your ‘stuck’ problem too since if the Agent doesn’t find an alternative way when an NavMeshObstacle is blocking the path, it will wait for the path to be cleared.