---
title: "Challenge 1: Create a NavMesh"
content_type: tutorial
url: "https://learn.unity.com/course/beginner-ai-pathfinding/tutorial/challenge-1-create-a-navmesh?language=en"
language: en
container_type: course
container_title: "Getting Started with AI Pathfinding"
container_url: "https://learn.unity.com/course/beginner-ai-pathfinding.md?language=en"
standalone_markdown_url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en"
previous_title: "NavMesh Baking"
previous_url: "https://learn.unity.com/course/beginner-ai-pathfinding/tutorial/navmesh-baking?language=en"
previous_markdown_url: "https://learn.unity.com/course/beginner-ai-pathfinding/tutorial/navmesh-baking.md?language=en"
next_title: "Challenge 2: Create a NavMesh Agent"
next_url: "https://learn.unity.com/course/beginner-ai-pathfinding/tutorial/challenge-2-configure-a-navmesh-agent?language=en"
next_markdown_url: "https://learn.unity.com/course/beginner-ai-pathfinding/tutorial/challenge-2-configure-a-navmesh-agent.md?language=en"
difficulty: beginner
duration_minutes: 20
unity_version:
  - "2020.2"
  - "2020.1"
  - "2019.4"
  - "2019.3"
  - "2019.2"
  - "2019.1"
  - "2018.4"
  - "2018.3"
  - "2018.2"
  - "2018.1"
  - "2017.4"
  - "2017.3"
  - "2017.2"
  - "2017.1"
  - "5.x"
  - "4.x"
supported_unity_versions:
  - name: "2020.2"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2020.2"
  - name: "2020.1"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2020.1"
  - name: "2019.4"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2019.4"
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2019.1"
  - name: "2018.4"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2018.4"
  - name: "2018.3"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2018.3"
  - name: "2018.2"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2018.2"
  - name: "2018.1"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2018.1"
  - name: "2017.4"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2017.4"
  - name: "2017.3"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2017.3"
  - name: "2017.2"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2017.2"
  - name: "2017.1"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=2017.1"
  - name: "5.x"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=5.x"
  - name: "4.x"
    url: "https://learn.unity.com/tutorial/challenge-1-create-a-navmesh.md?language=en&version=4.x"
last_updated: "2026-08-04T14:21:28.000Z"
---

# Challenge 1: Create a NavMesh

Set up a NavMesh in your scene and configure which areas agents can navigate or must avoid.

- _Create a NavMesh in the scene_
- _Configure areas to be included and excluded from the NavMesh_

## 1. Creating a NavMesh

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

![](https://connect-mediagw.unity.com/h1/20200915/learn/images/ee1e9495-0bd5-48d4-99c8-13f771dc4b3f_Unity_B6AtaYrw3i.png)

2\.  Add the NavMeshSurface component to the newly created GameObject

![](https://connect-mediagw.unity.com/h1/20200915/learn/images/bf47e8d2-df72-4ebf-afff-34a058f4e322_Unity_L9EVHSoGFB.png)

3\.  Click the Bake button to create the NavMesh

![](https://connect-mediagw.unity.com/h1/20200915/learn/images/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.

![](https://connect-mediagw.unity.com/h1/20200915/learn/images/0e09e1b2-ed4c-4f2a-a4bb-6887dd27d54d_Unity_cPk6kTPnth.png)
