- Home /
NavMeshAgent Not Working?
I been having a unfixable problem with a lot of scripts now, but this is the biggest one I've had that never been resolved.
I been wanting to make a click-to-move character but every script I have ever tried has failed. The test cube I created to place as a player just doesn't move.
I attached a Navmeshagent to my cube and put my code in (http://pastebin.com/Yncqqc56) and the console prints where I'm clicking but the cube just doesn't move. P.S My script is grayed out (As seen in the photo)
Here are some photos of the problems.
Answer by ShadoX · Apr 04, 2016 at 08:24 AM
Are you sure that you're setting the destination in the navMeshAgent ? If not, have a look at http://docs.unity3d.com/ScriptReference/NavMeshAgent.SetDestination.html
Yeah, Still doesn't work. I think it's something wrong with the engine. But I reinstalled it four times. $$anonymous$$y friend doesn't have the problem and he coded it for me