Issues with the navmesh

I’ve rebuilt the navmesh for the Asylum level but I’m getting a bunch of warnings:

image

If I shoot my enemies, I get:

"SetDestination" can only be called on an active agent that has been placed on a NavMesh.
UnityEngine.AI.NavMeshAgent:SetDestination (UnityEngine.Vector3)
EnemyAI:ChaseTarget () (at Assets/Scripts/EnemyAI.cs:83)
EnemyAI:EngageTarget () (at Assets/Scripts/EnemyAI.cs:59)
EnemyAI:Update () (at Assets/Scripts/EnemyAI.cs:41)

Could we provide some tips and tricks of how to make sure my navmesh always work with some rough terrain? (Note: I’ve no idea how those dudes ended up in the sky)

Note: I understand why I’d get this problem for my floating enemies, but I also get this for my dungeon because I think it’s not connected.

Hi David,

First of all, rebake the navmesh. Secondly, move the zombies right about the navmesh. They should be close to it but not stuck in the ground. Last but not least, take a look at the solution in this thread. Maybe it’ll fix the problem for you.


See also:

1 Like

Great tips, thank you, much appreciated (good link about the navmesh issue).

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms