Issues with baking the navmesh


Author: Aaronn Solomon

Posted: 10/20/2023


The Problem

I was tasked with creating a small. basic map for the first level of our game. As I finished it, I tried to run a test but found out that the enemies placed on the ground weren't moving. The enemies were moving normally in my teammates' personal scenes, so I wondered why this was.


The Solution

After asking my teammates why this was happening, one of them asked if I had the proper package installed from Unity. As it turns out, I did not. The ground the enemies were placed on required a component called a NavMeshSurface so the enemies knew where they could and couldn't walk. It's called baking, and once that process was complete, the enemies moved as desired.