CodeBlanks Logo Icon CodeBlanks

Saving the project

Learn to save scenes and projects and prepare for version control.

Saving a scene

You should save your scene to avoid losing the changes you make in Unity. You can use File → Save or the Ctrl + S shortcut.

File
  → Save

Ctrl + S

When saving a scene for the first time, you are asked to choose a name and location. Scene files are usually stored in the Assets folder.

Protecting the project and version control

Saving a scene and backing up a project are not the same thing. Regularly backing up your project folder reduces the risk of losing files. Version control tracks changes to files and allows you to return to earlier versions.

MyFirstGame/
  Assets/
  Packages/
  ProjectSettings/

Version Control
  → Track changes
  → Review history

You can use tools such as Git to track project history and manage your work safely.

Practice Create project saving information

Create three variables representing the project name, scene file, and version control tool. Set their values to MyFirstGame, MainScene, and Git, respectively. Print each value on a separate line.

Starter code

Player.cs
using UnityEngine;

public class SaveProjectInfo : MonoBehaviour
{
    void Start()
    {
        // Proje bilgilerini tanımla
        
        // Bilgileri sırayla yazdır
    }
}

Sample solution

Player.cs
using UnityEngine;

public class SaveProjectInfo : MonoBehaviour
{
    void Start()
    {
        string projectName = "MyFirstGame";
        string sceneName = "MainScene";
        string versionControl = "Git";

        Debug.Log(projectName);
        Debug.Log(sceneName);
        Debug.Log(versionControl);
    }
}

Expected output

MyFirstGame
MainScene
Git

Questions and answers

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

1 Which keyboard shortcut is used to quickly save a scene in Unity?

  • Ctrl + N
  • Ctrl + D
  • Ctrl + P
  • Ctrl + S Correct answer

Explanation: Ctrl + S is the shortcut used to save changes in the open scene.

2 Save the scene

Question
string shortcut = "____";
Answer
string shortcut = "Ctrl + S";

Explanation: Ctrl + S is the keyboard shortcut used to save your scene changes.

3 Saving and protection

Term Meaning
Ctrl + S Saves the scene
Assets Folder for scenes and game files
Yedekleme Keeps an additional copy of files
Version Control Tracks change history

All lessons in Beginner