---
title: "Game Boundaries"
content_type: tutorial
url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries?language=en"
language: en
container_type: course
container_title: "3D Game Kit Lite"
container_url: "https://learn.unity.com/course/3d-game-kit-lite.md?language=en"
standalone_markdown_url: "https://learn.unity.com/tutorial/game-boundaries.md?language=en"
previous_title: "Organizing your Scene"
previous_url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/organizing-your-scene?language=en"
previous_markdown_url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/organizing-your-scene.md?language=en"
next_title: "Adding Gameplay"
next_url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/adding-gameplay?language=en"
next_markdown_url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/adding-gameplay.md?language=en"
difficulty: beginner
duration_minutes: 10
unity_version:
  - "2020.3"
  - "2020.2"
  - "2020.1"
  - "2019.4"
  - "2019.3"
  - "2019.2"
  - "2019.1"
  - "2018.4"
  - "2018.3"
supported_unity_versions:
  - name: "2020.3"
    url: "https://learn.unity.com/tutorial/game-boundaries.md?language=en&version=2020.3"
  - name: "2020.2"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2020.2"
  - name: "2020.1"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2020.1"
  - name: "2019.4"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2019.4"
  - name: "2019.3"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2019.1"
  - name: "2018.4"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2018.4"
  - name: "2018.3"
    url: "https://learn.unity.com/course/3d-game-kit-lite/tutorial/game-boundaries.md?language=en&version=2018.3"
last_updated: "2026-08-04T14:24:47.000Z"
---

# Game Boundaries

In this lesson, you learn to use invisible walls to keep players inside your level when decoration and geometry are not enough.

When building a level, you might find that in testing you can easily escape from your level and get to areas where you don’t want a player to be able to go. You can’t always fix this by adding more decoration or geometry, but you can add invisible walls to keep players in a certain area.

## 1. Adding a Collider

When building a level, you might find that in testing you can easily escape from your level and get to areas where you don’t want a player to be able to go. You can’t always fix this by adding more decoration or geometry, but you can add invisible walls to keep players in a certain area.

To do this, you add a **Collider** on an empty **GameObject** and add it to the Scene:

- At the top of the **Hierarchy** window, go to **Create > Create Empty.**
- In the **Inspector** window, rename this to **GameBoundary.**
- In the **Inspector** window, select **Add Component.**
- In the search box, type in **Box Collider.**

![](https://connect-mediagw.unity.com/h1/20190213/learn/images/22400a52-05c0-4d15-8624-506229d569f5_image1.png)

- Select **Box Collider**. Unity automatically adds it to the **GameBoundary** GameObject you just created.

Now locate this GameObject in your Scene:

- Select **GameBoundary** in the **Hierarchy** window.
- Hover the mouse over the **Scene view.**
- Press **F** on the keyboard to **Frame Select** the GameObject.

![](https://connect-mediagw.unity.com/h1/20190213/learn/images/fa92fed9-3e6f-41d2-99dd-05c11cd8bedd_image3.png)

The **Box Collider** is visible by a thin green outline. Position, rotate and scale this GameObject to any problem areas in your level.

We need to ensure that this Collider stops **Ellen** from being able to pass through it. We have set up a specific **Layer** for this, with **GameBoundary** selected:

- In the **Inspector** window, select the **Layer** drop-down menu.
- Select **Environment** to set it to that **Layer.**

![](https://connect-mediagw.unity.com/h1/20190213/learn/images/c77f4799-52ea-4504-8f58-aad8bbc991f0_image2.png)

Press **Play** and test your game boundary to make sure it does what you want it to do.
