Language

Nav Agents Behaving Inconsistently

I'm working on a game that sends units to a location on click. There's buildings in this game that are nav mesh obstacles. When a player clicks on a building, it sends the unit to that building's location.

The problem is, units with the exact same nav agent settings, behave differently. Some units go to the building when clicked, every time. Others units, of the exact same type, don't move at all.

I've also noticed that removing the nav agent component and putting a new one on the unit sometimes resolves this, but it's not a realistic solution for runtime.

Does anyone know why this happens? The fact that removing and reattaching the nav agent component makes me think it's a bug, but I figured I'd ask first.