---
title: "Setting up the game"
content_type: tutorial
url: "https://learn.unity.com/tutorial/setting-up-the-game?language=en"
language: en
difficulty: beginner
duration_minutes: 20
unity_version:
  - "6.0"
  - "6.3"
supported_unity_versions:
  - name: "2022.3"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=2022.3"
  - name: "2020.2"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=2020.2"
  - name: "2020.1"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=2020.1"
  - name: "2019.4"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=2019.4"
  - name: "2019.3"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=2019.3"
  - name: "6.0"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=6.0"
  - name: "6.3"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en&version=6.3"
available_languages:
  - name: "en"
    url: "https://learn.unity.com/tutorial/setting-up-the-game.md?language=en"
  - name: "ja"
    url: "https://learn.unity.com/tutorial/gemuzuo-cheng-notamenosetsutoatsupu.md?language=ja"
  - name: "ko"
    url: "https://learn.unity.com/tutorial/geim-seoljeong.md?language=ko"
last_updated: "2026-08-04T14:22:29.000Z"
---

# Setting up the game

Use Unity Editor to build a simple game, script its core behavior, add a basic UI, and create a playable build to share.

Welcome to Roll-a-ball! In this learning project, you’ll:

- Use Unity Editor and its built-in capabilities to set up a simple game environment
- Write your own custom scripts to create the game functionality
- Create a basic user interface to improve the game experience
- Build your game, so other people can play it!

## 1. Overview

In this first Roll-a-ball tutorial, you’ll:

- Create a new Unity Project
- Set up your workspace
- Create and position some basic objects for your game
- Configure the lighting and game background


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

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/84183f6a-0905-4e4d-be59-5b5db508ab2b_0-setting-up-the-game-final.png)

## 2. Before you begin

## Before you begin

Before you get started, you do need to[ install the latest version of Unity](https://learn.unity.com/tutorial/project-setup-processes#60ed7a3fedbc2a001f71f1aa). This is currently **Unity 6**.


## New to Unity?

This learning experience assumes that you are already familiar with how to navigate the Scene view in the Unity Editor. If you’re completely new to Unity, this [tutorial on getting started with the Unity Editor](https://learn.unity.com/tutorial/get-started-with-the-unity-editor) has been designed to help you get comfortable and ready to create in the Unity Editor.

## 3. Create a new Unity project

Follow the video or text instructions below to select a project template and create a new project:

[Video](https://connect-mediagw.unity.com/h1/20251009/videos/497fde4f-58f5-4c38-891b-a0731dbf1c7e_Unity_RollABall_1-1_Update_U6_2022_V3_NewHub.mp4)

[Download transcript](https://unity-connect-prd.storage.googleapis.com/20240919/b67dea9b-0b8c-4bfa-a1bd-578449607177/Create-a-new-Unity-Project-Transcript.txt)

## 1\.  Select a project template.

- Open Unity Hub and log in using your Unity account.
- Select **New Project**.
- Select the **Universal 3D** template and then select **Download template** if it is not already downloaded**.**


## 2\.  Create the new project.

- In the Project Settings, enter “Rollaball” in the **Project Name** box, select the **Location** box, and select a local folder of your choice.
- Select **Create Project** and wait for the Unity Editor to open.

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/9d56ea42-9138-4a3a-ad4f-440fd59ee5d6_1-create-a-new-project.png)

## 4. Create a new Scene

Follow the video or text instructions below to set up your workspace, create a new scene from a template, and save your scene:

[Video](https://storage.googleapis.com/learn-platform-bucket-production/tutorial/53832c96-a0f4-5fba-8a31-2365907dbb3c/versions%5B_key==%22yLp09thJhNvnon364cICuY%22%5D.sections%5B_key==%22HDmOj4kM4HVkJkWHXXrwxV%22%5D.body%5B_key==%22dcbdf67a2e76%22%5D/Unity_RollABall_1-2_Fixed_20251030_163814.mp4)

[Download Transcript](https://connect-prd-cdn.unity.com/20230831/b4a81522-7991-4d80-ad23-62a8a2014116/Create_a_new_Scene-Transcript.txt)

## 1\.  Set up your workspace.

- Make sure the **Default** Layout is selected from the **Layout** dropdown for tutorial consistency.


## 2\.  Create a new scene from a template.

- To create a new scene, select **File** > **New Scene**.
- Select the **Basic URP** template, then select **Create**.


## 3\.  Save the scene.

- Select **File** > **Save As**.
- Name the scene "MiniGame".
- Save the scene in the folder named “Scenes”.



![](https://connect-mediagw.unity.com/h1/20230920/learn/images/5e2fea6a-e480-4b49-a4df-0ed83da2c3ce_2-rename-minigame.png)

## 5. Create a primitive plane

Follow the video or text instructions below to create and a Plane GameObject, reset its position, and then frame the plane in the Scene view:

[Video](https://connect-mediagw.unity.com/h1/20211215/videos/6464f863-bc55-4d4c-af05-76fc57111664_Unity_RollABall_1_3.mp4)

[Download Transcript ](https://connect-prd-cdn.unity.com/20200716/c19d6824-6557-413d-a69b-686aaac09ce9/Create_a_primitive_plane-Transcript.txt?_ga=2.187808416.943030393.1594530423-42703541.1592249374)

## 1\.  Create a Plane GameObject.

- From the main menu, select **GameObject** > **3D Object** > **Plane**.
- Alternatively, in the **Hierarchy** window, select the **Add** menu (**+**) > **3D Object** > **Plane**.
- At the top of the **Inspector** window, rename the newly created **Plane** GameObject "Ground".


## 2\.  Reset the position of the Plane.

- With the **Ground** GameObject selected, in the upper-right corner of the **Transform** component, select the vertical **More** (⋮) menu .
- Select **Reset** for the **Transform** component of the **Ground** GameObject. This action places the GameObject at the origin point (0, 0, 0) in the scene.


## 3\.  Frame the Plane in the Scene view.

- Ensure the **Ground** GameObject is selected and position the cursor in the **Scene** view.
- Press the **F** key to frame the entire GameObject nicely within the **Scene** view.

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/dff45d10-e46e-422a-ac57-5fc6ab178846_3-ground-plane.png)

## 6. Scale the Ground Plane

Follow the video or text instructions below to increase the scale of the Ground Plane and set precise scale values:

[Video](https://connect-mediagw.unity.com/h1/20230828/videos/e18e41fa-97d5-4e1d-9c1e-4e07549517b4_Unity_RollABall_1-4_2022_LTS_Update.mp4)

[Download Transcript ](https://connect-prd-cdn.unity.com/20230831/2de9c896-8dae-40c8-a9af-f4eb88a4e610/Scale_the_Ground_Plane-Transcript.txt)

## 1\.  Increase the scale of the Ground Plane.

- With the **Ground** GameObject selected, activate the **Scale** tool by pressing the **R** hotkey.
- Drag the **X** (red) and **Z** (blue) handles to increase the size of the Plane.


## 2\.  Set precise scale values

- In the **Transform** component, set the **X** and **Z** **Scale** values to **2.0**.

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/205669cf-5b59-4eb8-9291-7f1813734491_4-increase-scale.png)

## 7. Create a Player GameObject

Follow the video or text instructions below to create a sphere for the player and then position it at the center of the Ground Plane:

[Video](https://connect-mediagw.unity.com/h1/20211215/videos/bfab90f0-a424-4767-92c1-03d1c11d9a38_Unity_RollABall_1_5.mp4)

[ Download Transcript](https://connect-prd-cdn.unity.com/20200716/9be1c190-1bb6-461c-91dd-af2257a6353c/Create_a_Player_GameObject-Transcript.txt?_ga=2.15701950.943030393.1594530423-42703541.1592249374)

## 1\.  Create a Player sphere.

- In the **Hierarchy** window, **right-click** > **3D Object** > **Sphere.**
- Rename the newly created **Sphere** GameObject "Player".


## 2\.  Position the Player Sphere at the origin.

- In the **Inspector** window, reset the **Transform** component of the **Player** GameObject to position it at the origin point (0, 0, 0) of the scene.
- Press the **F** key in the **Scene** view to frame the **Player** GameObject in the **Scene** view.


## 3\. Move the Player GameObject up to sit on the Plane.

- In the **Transform** component for the **Player** GameObject, set the **Y Position** value to **0.5**.

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/d3fae6fc-4a29-4e7e-a791-90a1d61c6582_5-add-player-sphere.png)

## 8. Adjust the default lighting

Follow the video or text instructions below to assess the Directional Light, then change its color to white:

[Video](https://connect-mediagw.unity.com/h1/20211215/videos/fa213d18-098a-4d57-b235-85ae62a87327_Unity_RollABall_1_6.mp4)

[Download Transcript](https://connect-prd-cdn.unity.com/20200716/78b20a5a-944c-4d13-af3b-f6f8733063c3/Adjust_the_default_lighting-Transcript.txt?_ga=2.119558656.943030393.1594530423-42703541.1592249374)

## 1\.  Assess the Directional Light.

- Navigate from the **Scene** view to the **Game** view to observe the lighting and shadows on the **Player** GameObject.
- In the **Hierarchy** window, select the **Directional Light**.


## 2\.  Change the light color to white.

- In the **Light** component, use the foldout (triangle) to expand the **Emission** module, and use the color picker to modify the light's tint from yellow to pure white for better scene balance.
- In the **Color** dialog, you can also manually set the **RGB** values to **255**, **255**, and **255**.
- **Note:**  To edit the RGB values from the Color window, use the dropdown to change the color mode from **HSV** to **RGB 0–255**.

![](https://connect-mediagw.unity.com/h1/20240918/learn/images/31bc24fd-3752-4d26-b1ee-c067d029f67f_Color-window-rgb-mode.png)

## 9. Add colors with Materials

Follow the video or text instructions below to create a new Materials folder, a new Background material, a new Player material, and then finally adjust the Directional Light’s rotation:

[Video](https://connect-mediagw.unity.com/h1/20211215/videos/f565d6ee-a6e8-45f2-a76b-3ec8a463af39_Unity_RollABall_1_7.mp4)

[Download Transcript](https://connect-prd-cdn.unity.com/20200716/79d7b06e-7458-4025-acc7-9c07b0a2e3e5/Add_colors_with_Materials-Transcript.txt?_ga=2.78648604.943030393.1594530423-42703541.1592249374)

## 1\.  Create a new Materials folder.

- In the **Project** window, navigate to the highest level **Assets** folder.
- Inside the Assets folder, **right-click** > **Create** > **Folder** to make a new folder.
- Rename the new folder "Materials".


## 2\.  Create a new Background material.

- In the newly created **Materials** folder, **right-click** > **Create** > **Material** to make a new material, then name it "Background".
- In the **Inspector** window, use the foldout (triangle) to expand the **Surface Inputs** module, and select the **Base Map** color picker.
- Change the color to a pale gray with RGB values of **130**, **130**, and **130**.
- Make sure the **Metallic Map** is set to **0** and the **Smoothness** is set to around **0.25** for a matte finish.
- Apply the **Background** material to the **Ground** GameObject by dragging it from the **Project** window onto the Ground GameObject in the **Scene** view.


## 3\.  Creating a new Player Material.

- In the **Materials** folder, create a new material and name it "Player".
- In the **Inspector** window, adjust the **Base Map** color for the **Player** material — set the RGB values to **0**, **220**, and **255** for a light blue.
- Set the **Metallic Map** to **0** and change the **Smoothness** to **0.75** for a shiny finish.
- Apply the **Player** material to the **Player** GameObject by dragging it onto the sphere in the **Scene** view.


## 4\.  Change the Directional Light’s rotation.

- In the **Hierarchy** window, select the **Directional Light**.
- In the **Transform** component, change the **Rotation** values to **X**=**50**, **Y**=**50**, and **Z**=**0** for a more dramatic silhouette.

![](https://connect-mediagw.unity.com/h1/20230920/learn/images/555e74fe-3de4-4ccd-8d2c-7a7b462db8b7_7-add-materials.png)
