Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialCharles Voyles
Courses Plus Student 1,906 PointsFailed to create agent because it is not close enough to the NavMesh
"SetDestination" can only be called on an active agent that has been placed on a NavMesh. UnityEngine.AI.NavMeshAgent:SetDestination(Vector3) BirdMovement:Update() (at Assets/Scripts/BirdMovement.cs:23)
I followed the directions but the NavMesh Agent has an Agent Type where you change the size settings. I have baked the NavMesh and tried removing and then adding the bird again. Still get this error.
1 Answer
Charles Voyles
Courses Plus Student 1,906 PointsI deleted and reset the Agent Type settings and used the size settings on the new default humanoid Agent Type. Bake the NavMesh again and that seemed to fix the error. This seems like it is a bug in the editor.