Hi all, im having a strange issue with my navmesh agent. Im spawning in players at runtime and it seems that when an agent gets enabled on them they “pop” up in the air by 0.8 ish and because of that they cant touch the nav mesh and it gives me the error. Im using Unity 2018.3.1. Little gif of what i mean below.
Thanks guys.
Looks like the offset on the NavMeshAgent, but I don’t know why that is causing an error. Please send the error message.
The error is this:
“SetDestination” can only be called on an active agent that has been placed on a NavMesh.
I have tried it on empty game objects and it still seems to do it even with default values
How do you spawn your agents? Did you use NavMesh.SamplePosition to find a position on the navmesh? The error occurs because your agent is not positioned on a navmesh. I cannot see a navmesh in your gif as well? Where is it?