Time for action – creating the NavMesh
Unity can automatically generate a NavMesh from any meshes that exist in a scene. To do so, the mesh must first be marked as static, just as we did for lightmaps. However, we do not want or need to be able to navigate the roofs of our city, so we make use of a special list of settings for dictating what type of static each object will be:
- Select the city from the Hierarchy window and click on the down arrow to the right of Static in the Inspector window and we can take a look at the options available for static objects as follows:
- Nothing: This option is used to quickly deselect all the other options. If all ...
Get Unity Android Game Development by Example Beginner's Guide 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.