Setting Up Your First Unity 2D Project
Tags: unity3d, gamedev, tutorial, csharp
Published: 2021-09-21 14:20:28

---
title: Setting Up Your First Unity 2D Project
published: true
date: 2021-09-16 21:43:59 UTC
tags: unity, gamedev, tutorial, csharp
canonical_url: https://blog.tarynmcmillan.com/setting-up-your-first-unity-2d-project
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rs1dbp3ahdvn0och0qpf.png
---

Welcome to the first post in a new series I'm calling **Beginner's Guide to Unity**.

I created this series for anyone who is interested in learning game development in Unity but isn't sure where to start.

In this article, we will go over the basics of setting up a 2D project and learn about key components of the Unity interface.

### Learning Outcomes:

_By the end of this article, you will be able to:_

- Download and install Unity.
- Create a new 2D project via the Unity Hub.
- Identify the six main components of the Unity interface and explain their purpose.

![Unity divider(1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631730800522/9ke4jyBr1.png)

## Downloading Unity

1. Click the following link to open up the Unity Download webpage in your browser: https://unity3d.com/get-unity/download.

2. Select **Choose your Unity + download**.

3. Scroll down until you find the grey box with the heading **Unity Personal**. Click **Get started**.

    ![Unity personal version Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631729128815/0kDccj-Ap.png)

4. Under **First-time users** , click **Start here**.

    ![First time users Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631729443655/4duxVjd1d.png)

5. Follow the on-screen instructions to download and install the **Unity Editor** and **Unity Hub** (you will need both for this tutorial).

![Unity divider(1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631730800522/9ke4jyBr1.png)

## Creating a new project

1. Open up the Unity hub. In the top-right corner, click **New** to launch the **New Project Window**. Select **2D** under **Templates** and enter a Project Name and Location. Then click **Create**.

     ![New Project Window Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631728302737/TdAg_4b0k.png)

2. Wait for Unity to load. This may take a few minutes. Once this process is done, you should see your blank project open in the Unity editor.

![Unity divider(1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631730800522/9ke4jyBr1.png)

## Identifying key parts of the UI

There are six main UI components in Unity: the **Hierarchy** , **Project Assets** folder, **Scene View** , **Game View** , **Inspector** , and **Console**. With your blank project open, let's take a few minutes to look at each one of them.

### Hierarchy

![Hierarchy shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631731084131/t3sFf6Ez-.png)

The **Hierarchy** is located on the left side of the Unity editor. It displays all of the Game Objects which are currently contained within your scene. You can create a new element in the Hierarchy by right-clicking and selecting your desired option. Objects which are deleted from the Hierarchy will no longer be included in your scene.

### Project Assets

![Project Assets folder Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631731283588/j06pjjD5e.png)

The **Project Assets** folder is located at the bottom of the Unity editor. Within this folder, you can see all of the assets which are included in your project. These can be assets that you have created, such as images or prefabs, as well as packages that you have downloaded from the Unity Asset Store. Assets which are in this folder are not automatically in your scene and must be added manually.

### Scene View

![Scene view Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631811943474/0_OnNwwwq.png)

**Scene View** is where you will do all of your edits. You can move the Scene View window by dragging it and docking it to a different location. You can also toggle between 2D and 3D view at the top of the Scene window.

### Game View

![Game view Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631812046402/UU0dvEZRH.png)

**Game View** displays the game as it currently appears to the player. You cannot make edits in the Game window. Like with Scene View, you can drag the Game View window and dock it to a different location. Changing the camera position in Scene View will change the output in Game View.

### Inspector

![Inspector Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631802768049/SceJFB6cN5.png)

The **Inspector** displays characteristics of the currently-selected element either in your Hierarchy or Project Assets folder. This is where you can add components, such as C# scripts, to your Game Objects. You can lock the Inspector on a particular element by clicking the lock icon at the top-right of the Inspector panel.

### Console

![Console Shadow.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631802938946/ApTZhhe1e.png)

The **Console** is where debugging occurs in Unity. You can print logs to the Console in your C# scripts using **print()** or **Debug.Log()**. The Console displays warnings and errors in your project. You can double-click on them to see where these problems exist in your scripts.

![Unity divider(1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631730800522/9ke4jyBr1.png)

## Test Your Knowledge

_Let's test your understanding of the material in this article with a few quiz questions._

**For each question, answer either True or False.**

1. You cannot make edits to your game in Game View.

2. The Inspector is where you can view debug messages such as Debug.Log().

3. To create a new 2D project in Unity, you need a Project Name and Location.

4. The Hierarchy contains all of your game assets, including those not currently in your scene.

5. Scene View is where you can toggle between 2D and 3D view.

![Unity divider(1).png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631730800522/9ke4jyBr1.png)

_Answers: T; F; T; F; T;_