NavmeshAgent too far away after Unity Update
After updating Unity from 5.5f3 to 2017.1f1 the Navmesh system seems to not work anymore. The agents all produce a warning:
Failed to create agent because it is not close enough to the NavMesh.
(Therefore they won't move anymore as well.)
I'm guessing it has to do with the 5.6 navmesh update.
My questions:
a) Is there a guide on how to upgrade the navmesh system from 5.5 to 5.6? I didn't find any information.
b) Did the needed distance change and is there an easy way to snap the agents to the surface?
c) Do I maybe need to rebake the navmesh? (It's a lot of work that's why I'm not just trying. I can still see the navmesh in the scene.)
Answer by arzi42 · Sep 27, 2017 at 04:12 PM
We updated from 2017.1.0p5 to 2017.1.1p2 and are suffering from the same problem. It works occasionally, but not quite often and so far we haven't found a fix. If it's the same problem, then it seems to be in 2017.1.1 and not in the version before that. Are you using 1.1 or 1.0?
Answer by Trousers96 · Nov 16, 2017 at 08:24 PM
I had a similar issue after updating, when spawning enemies at run-time.
Try calling .Warp(transform.position), on your new spawned enemy. That's what fixed it for me.