Challenge 1: Create a NavMesh

Tutorial

·

Beginner

·

+10XP

·

20 mins

·

(145)

Unity Technologies

Challenge 1: Create a NavMesh
  • Create a NavMesh in the scene
  • Configure areas to be included and excluded from the NavMesh

Languages available:

1. Creating a NavMesh

1. Create a new empty GameObject, name it NavMesh, and reset its transform

ee1e9495-0bd5-48d4-99c8-13f771dc4b3f_Unity_B6AtaYrw3i.png

2. Add the NavMeshSurface component to the newly created GameObject

bf47e8d2-df72-4ebf-afff-34a058f4e322_Unity_L9EVHSoGFB.png

3. Click the Bake button to create the NavMesh

1d3f2deb-82e5-422e-849a-e26cd32a9f7c_Unity_3J6v5nGaxg.png

4. Everything that is highlighted in blue in the Scene view is part of the NavMesh surface. Notice the Player GameObject is also included in the NavMesh Bake.

0e09e1b2-ed4c-4f2a-a4bb-6887dd27d54d_Unity_cPk6kTPnth.png

Complete this tutorial