DEV Community

Discussion on: "Setdestination" can only be called on an active agent that has been placed on a navmesh.

Collapse
 
rabiaoutanarhrite profile image
Rabia Outanarhrite

I got the same error and i fix it by using nav.isStopped = true; instead of nav.enabled = false;