- Home /
"SetDestination" can only be called on an active agent that has been placed on a NavMesh.
I need to instantiate a gameobject where is attached navMeshAgent and use method agent.SetDestination() at runtime. I have a gameObject with NavMeshSurface, this object is already static. I have got also script where I call NavMeshSurface.BuildNavMesh() and I have already baked the area. The agent is close enough to baked area. Where is the problem?alt text
agent.png
(191.2 kB)
bakearea.png
(249.9 kB)
Comment
Your answer
Follow this Question
Related Questions
Disable and Enable NavMesh Agent Unable to Move to Destination 1 Answer
Is it possible to store NavMeshAgents paths and assign them to other NavMeshAgents later? 1 Answer
Navmesh problem with characters rotation in the terrain 1 Answer
Multiple agent types problem - NavMesh 0 Answers
Can NavMeshAgents be assigned teams for friendly and adverse interactions? 0 Answers