CodeBlanks Logo Icon CodeBlanks

Creating your first project

Learn to create a new 3D project in Unity.

Creating a new Unity project

You can create a new project by opening the Projects section in Unity Hub. On the new project screen, you choose a project template, enter a project name, and select where it will be stored on your computer.

Projects
  → New Project
  → Select Template
  → Project Name
  → Create Project

Once the project is created, Unity Editor opens with your selected project.

Project structure

When a Unity project is created, its required files and folders are generated automatically. Assets contains game files, Packages contains packages used by the project, and ProjectSettings contains project settings.

MyFirstGame/
  Assets/
  Packages/
  ProjectSettings/

Keeping your files organized and preserving project folders makes future work easier.

Practice Print the first project information

Create two variables representing a project named MyFirstGame and the 3D Template template. Print both pieces of information on separate lines using Debug.Log.

Starter code

Player.cs
using UnityEngine;

public class ProjectInfo : MonoBehaviour
{
    void Start()
    {
        // Proje adını tanımla
        
        // Şablon adını tanımla
        
        // İki bilgiyi yazdır
    }
}

Sample solution

Player.cs
using UnityEngine;

public class ProjectInfo : MonoBehaviour
{
    void Start()
    {
        string projectName = "MyFirstGame";
        string templateName = "3D Template";

        Debug.Log(projectName);
        Debug.Log(templateName);
    }
}

Expected output

MyFirstGame
3D Template

Questions and answers

Review the lesson questions together with their answers. To test yourself, solve the lesson interactively.

1 Which template should you select when starting a new 3D game project?

  • Audio Template
  • 3D Template Correct answer
  • 2D Template
  • Empty Website

Explanation: 3D Template is the template used to start a three-dimensional game project.

2 Set the project name

Question
string projectName = "____";
Answer
string projectName = "MyFirstGame";

Explanation: The project name is used to identify the project you create in Unity Hub.

3 Unity project folders

Term Meaning
Assets Game files and assets
Packages Packages used in the project
ProjectSettings Project configuration settings
3D Template Starting point for a 3D project

All lessons in Beginner