Add Runtime Nav Mesh Community Content to Project

To fix the enemies from walking through collidable objects, you will be adding a Nav Mesh generator that works at runtime. The map will be spawned, and then the Nav Mesh will be generated that the AI will use to correctly path find to their target.

Add Community Content

In the Community Content window, search for runtime to find the Runtime Nav Mesh Generation content, and click the Import button to import the content into the project.

Add Runtime DDPathfinding Template

After clicking the Import button, you will be shown the template Runtime DDPathfinding. Add this to your Hierarchy.

Delete Example Script

The template you added to the Hierarchy will contain an Example script that is not needed and needs to be deleted.

  1. Deinstance the Runtime DDPathfinding template in the Hierarchy.
  2. Delete the Example script.
Scroll to Top