---
title: "Setting up the Play Area"
content_type: tutorial
url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game/tutorial/setting-up-the-play-area-1?language=en"
language: en
container_type: pathway
container_title: "Game Development"
container_url: "https://learn.unity.com/pathway/game-development.md?language=en&version=6.3"
unit_title: "Create a basic 3D game"
unit_url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game?language=en&version=6.3"
standalone_markdown_url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=6.3"
previous_title: "Moving the Camera"
previous_url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game/tutorial/moving-the-camera-1?language=en&version=6.3"
previous_markdown_url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game/tutorial/moving-the-camera-1.md?language=en&version=6.3"
next_title: "Creating Collectibles"
next_url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game/tutorial/creating-collectibles-1?language=en&version=6.3"
next_markdown_url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game/tutorial/creating-collectibles-1.md?language=en&version=6.3"
difficulty: beginner
duration_minutes: 10
unity_version:
  - "6.0"
  - "6 Preview"
  - "6 Beta"
  - "2023.2"
  - "2023.1"
  - "2022.3"
  - "6.3"
supported_unity_versions:
  - name: "2020.2"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2020.2"
  - name: "2020.1"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2020.1"
  - name: "2019.4"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2019.4"
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2019.3"
  - name: "6.0"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=6.0"
  - name: "6 Preview"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=6+Preview"
  - name: "6 Beta"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=6+Beta"
  - name: "2023.2"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2023.2"
  - name: "2023.1"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2023.1"
  - name: "2022.3"
    url: "https://learn.unity.com/tutorial/setting-up-the-play-area-1.md?language=en&version=2022.3"
  - name: "6.3"
    url: "https://learn.unity.com/pathway/game-development/unit/create-a-basic-3d-game/tutorial/setting-up-the-play-area-1.md?language=en&version=6.3"
last_updated: "2026-08-04T14:24:18.000Z"
---

# Setting up the Play Area

Configure your game’s play area by building one wall, then duplicating and positioning it to form a contained space.

In this tutorial, you’ll configure the play area for your game by:

- Creating and configuring one wall
- Duplicating and placing it to create a contained game area

## Materials

- [Create_a_wall_for_the_play_field-Transcript.txt](https://unity-connect-prd.storage.googleapis.com/20200716/d206a8fe-4861-4c45-b06e-1676103ea015/Create_a_wall_for_the_play_field-Transcript.txt)
- [Finish_the_play_field_walls-Transcript.txt](https://unity-connect-prd.storage.googleapis.com/20200716/c58e00f2-0922-48b0-b6fc-545870abe2d8/Finish_the_play_field_walls-Transcript.txt)

## 1. Overview

In this tutorial, you’ll configure the play area for your game by:

- Creating and configuring one wall
- Duplicating and placing it to create a contained game area

By the end of this tutorial, your game will look something like this:

[Video](https://connect-mediagw.unity.com/h1/20230920/videos/66cc885d-7722-4ed0-a05e-c02dd940fcec_4.2.3-final-bounce-into-walls.mp4)

## 2. Create a wall for the play field

Follow the video or text instructions below to create an empty parent GameObject, create a **Wall** child GameObject, set the **Wall** GameObjects’s transform values, and create a material for the **Wall** GameObject:

[Video](https://connect-mediagw.unity.com/h1/20211215/videos/cde9c4d5-c0ec-4d47-a56c-02a698780729_Unity_RollABall_4_1.mp4)

[Download Transcript](https://connect-prd-cdn.unity.com/20200716/d206a8fe-4861-4c45-b06e-1676103ea015/Create_a_wall_for_the_play_field-Transcript.txt?_ga=2.72782747.943030393.1594530423-42703541.1592249374)

## 1\.  Create an empty parent GameObject.

- In the **Hierarchy** window, **right-click** > **Create Empty,** then rename it “Walls”.
- In the **Inspector** window, reset its **Transform** component.


## 2\.  Create a Wall child GameObject.

- In the **Hierarchy** window, **right-click** > **3D Object** > **Cube**, then rename it “West Wall”.
- In the **Inspector** window, reset the **West Wall** GameObject’s **Transform** component.
- Drag the **West Wall** GameObject onto the **Walls** GameObject. This makes the **West Wall** GameObject a child GameObject of the **Walls** GameObject.


## 3\.  Set the Wall’s transform values.

- Press the **F** key while the cursor is over the **Scene** view to frame the **West Wall** GameObject in the view.
- In the **Inspector** window, change the wall’s **Transform Scale** values to **X**=**0.5, Y**=**2.0, Z**=**20.5.**
- Set the **Transform's Position X** value to **-10**.
- This places the **West Wall** GameObject neatly on the edge of the play area.


## 4\.  Create a material for the walls.

- In the **Project** window, go to the **Materials** folder, then **right-click** > **Create** > **Material**.
- Rename this new material “Walls”.
- In the **Inspector** window, select the **Base Map** color field to open the color picker, then set the **RGB** values to **79**, **79**, **79** for a darker gray.
- Set the **Metallic Map** to **0** and change the **Smoothness** to **0.25**, for a matte finish.
- Drag the **Walls** material from the **Project** window onto the **West Wall** GameObject in the **Scene** view.

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/4bebd52a-4000-4bb8-8f92-35500c4b91aa_1-set-up-west-wall.png)

## 3. Finish the play field walls

Follow the video or text instructions below to create the East wall, the North wall, and the South wall, then test the game:

[Video](https://connect-mediagw.unity.com/h1/20211215/videos/b5964489-1373-453c-8b10-f249d24ebd2b_Unity_RollABall_4_2.mp4)

[Download Transcript](https://connect-prd-cdn.unity.com/20200716/c58e00f2-0922-48b0-b6fc-545870abe2d8/Finish_the_play_field_walls-Transcript.txt?_ga=2.6314682.943030393.1594530423-42703541.1592249374)

## 1\.  Create the East wall.

- Right-click the **West Wall** GameObject and select **Duplicate**.
- Rename the new GameObject “East Wall”.
- To reposition the wall, remove the negative sign in the **Position X** value of the **Transform** component.


## 2\. Create the North and South walls.

- Duplicate the **East Wall** GameObject and rename the duplicate “North Wall”.
- Set the **Rotation Y** value to **90**.
- Set its **Position X** value to **0** and its **Position Z** value to **10**.
- Duplicate **North Wall** GameObject, rename it “South Wall”, and set its **Position Z** value to **-10**.

![](https://connect-mediagw.unity.com/h1/20230921/learn/images/8943b6cc-b376-4847-94a3-79e95825a9da_image.png)

## 3\.  Test the game.

- You should now be able to roll around and bump into the walls.
- If the ball is going through the walls, make sure that the IsTrigger property in the Collider component is disabled.

[Video](https://connect-mediagw.unity.com/h1/20230920/videos/f105d662-3a0d-4d51-9f2f-dbbee3eee3f1_4.2.3-final-bounce-into-walls.mp4)
