Enable Unity navmesh afore changing its properties

This works:

_navMeshAgent.enabled = true;
_navMeshAgent.destination = target.position;

This does not:

_navMeshAgent.destination = target.position;
_navMeshAgent.enabled = true;

Computers suck.

Leave a Comment

Your email address will not be published. Required fields are marked *

Auto
Scroll to Top