Setting up the NavMesh - Pupcheco/Every_Day_Heroes GitHub Wiki

  • Make sure your active scene is the one that NPCs will be running around in (i.e. not a menu or anything).
  • Set any ground objects or static obstacles to "Navigation Static" in the top right of its inspector window (under the "Static" dropdown). You can batch do this by ctrl+clicking on all the objects that need to be set to static and changing the group all at once.
  • Click Window > AI > Navigation to open the navigation window.
  • Under the Object tab, set each mesh to its appropriate setting (either "Walkable" or "Not Walkable"). This can also be done in bulk.
  • Under the Bake tab, adjust the settings to fit the NPCs, then click "Bake."

And that should do it! If it works, all of the areas that the NPCs can walk on will have a blue mesh on their top surface in the Scene view while you have the Navigation window open. If nothing is showing up, adjust the different values in the Bake tab and TRY AGAIN UNTIL IT WORKS, DAMMIT.