Navigation static

Once we add the floor and the obstacles, it is important to mark them as Navigation Static so that the NavMesh generator knows that those are the static objects to avoid. To do this, select all of the objects, click on the Static button, and choose Navigation Static, as shown in the following screenshot:

The Navigation Static property

Get Unity Artificial Intelligence Programming - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.