My Nav Mesh Agent only works in editor, but when i build it, it wont work

Hi there, I’m new to making game, and currently I’m having problem with the navmeshagent.

So in the project, the npc walks with no problem, but after i build the project, suddenly the npc only stay in place.

also I have baked the navigation and its not the problem

i looked for solution, and they said it is because multiple baked navmesh data on the asset folder, but i couldnt find the directory, any help?

Hi,

Welcome to our community! :slight_smile:

In which course and lecture are you? And who is “they”?

If the problem occurs in the build only, maybe Rob’s instruction in this thread might reveal more information on the problem at runtime. Maybe there is a helpful message in your console.

thanks for your time, but actually the problem was caused by my random waypoints script in which the waypoints couldn’t be added to list therefore my navmesh agent didnt know where to go.

Does that mean you fixed the problem? :slight_smile:


See also:

yes i solved it by removing the script

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

Privacy & Terms