O'Reilly logo

Unity Android Game Development by Example Beginner's Guide by Thomas Finnegan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. 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:
    Time for action – creating the NavMesh
    • Nothing: This option is used to quickly deselect all the other options. If all ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required