Curriculum
Course: How to develop 3D Games with Unity
Login
Video lesson

Version Control in Unity

Objectives

  1. Understand the Basics of Version Control in Unity: Learn about the importance and benefits of using version control in Unity projects.

  2. Set Up a Version-Controlled Unity Project: Walk through the process of setting up a Unity project with version control.

  3. Utilize Unity Cloud for Version Control: Learn to use Unity Cloud for managing different versions of your Unity project.

Summary on Version Control in Unity and Unity Cloud

Version control in Unity is a system that helps manage changes to project files and assets over time. It allows multiple team members to work collaboratively on a project without overwriting each other’s work. Unity Cloud provides a seamless integration for version control, offering an online platform where developers can store and manage different versions of their Unity projects. This system is crucial for backup, undoing mistakes, and maintaining different versions of a game for testing and development purposes.

Steps to setup Unity Version Control on the Unity Editor 

1. Set Up Version Control in Unity:

  • Open Unity and access your project.

  • Navigate to Project Settings and enable Version Control.

2. Create a Workspace for Version Control:

  • In Unity, create a new workspace dedicated to version control.

  • Name the workspace appropriately, such as “Game Development – Version Control.

3. Initialize Your Project with Version Control:

  • Commit your initial project files to version control. This is known as the “initial commit” and sets up your project for version tracking.

  • Accessing Unity Cloud for Repository Management.

  • Use Unity Cloud through Unity’s version control interface to access your online repository.

4. Creating and Managing Branches:

  • In Unity Cloud, create branches for different aspects of your project, such as different features or versions of your game. This is done to manage changes in a structured way.

5. Adding Changes to a Branch:

  • Make changes to your project, such as adding a new scene or modifying settings.

  • Add these changes to the appropriate branch by committing them in Unity’s version control interface.

6. Switching Between Branches for Different Features:

  • Use Unity’s Branch Explorer to switch between different branches, allowing you to work on separate parts of your project independently

7. Merging Changes from Different Branches:

  • Once you are satisfied with changes in a branch, you can merge these changes into another branch, such as merging feature updates into the main project branch.

8. Reviewing and Pushing Changes to the Online Repository:

  • Review the changes you’ve made and, if satisfied, push them to your online repository. This updates the online version of your project with the latest changes.

9. Continuously Using Version Control for Project Management:

  • Regularly commit changes to your branches, merge updates as needed, and push to the online repository to ensure your project is up-to-date and backed up.