Get started with Unity Version Control via the Unity Hub
You can add Unity Version Control (UVCS) to your projects through the Unity Hub.
If you don't already have DevOps set up, then you get a free trial of the DevOps services when you enable Version Control through the Hub. You can also set up DevOps through your Unity Cloud Dashboard. For more information, refer to Get started with Unity DevOps.
Note: If you are an invitee to a Unity Version Control repository, you only need a Unity ID to begin working on it. For detailed instructions, refer to Add projects from UVCS to your Hub to get started.
View your projects in the Unity Hub
The second column on the Projects page of the Unity Hub shows whether each project has UVCS enabled:
- The link icon means that the project uses UVCS. Select the link icon to view your repository in the Unity Cloud Dashboard.
- The broken link icon means that the project doesn't use UVCS.
Enable UVCS for your projects
Create a project with UVCS
To create a new project in the Unity Hub with UVCS:
- Select New project.
- In the right side panel, set a Project Name and Location .
- Select the Use Unity Version Control checkbox.
- Check the auto filled Unity Version Control Organization, Repository Name, and Server location fields and edit them if necessary.
- Select Create project.
Add UVCS to an existing project
To enable UVCS for existing projects in the Hub:
- Open the contextual menu for the project.
- Select the Use Unity Version Control option in the dropdown menu.
- Check the auto filled UVCS fields and edit them if necessary.
- Select Connect to Version Control.
Add projects from UVCS to your Hub
If you've been invited to a UVCS repository containing Unity projects, you can add those projects to the Hub:
- Select Add > Add from repository.
- Select the repository and then click Next.
- Choose the Location where you want to download the repository, then click Next.
- Select the Editor version and platform and click Open.
- If you don't have a compatible Unity Editor version for the project, a dialog opens and prompts you to install one.
- The Unity Editor opens with the most recent project in the repository, which is added to the Hub.
Add encrypted repositories to your Hub
If you have been invited to an encrypted UVCS repository, you can add its contained projects to the Hub by following these steps:
- Ensure you have the encryption key needed to access the repository contents.
- If you haven't already, install the UVCS desktop client.
- Use the UVCS desktop client to download the repository contents to your local machine, entering the encryption key when prompted.
- In the Hub, click Add, select Add project from disk, and select the project location.
- If the repository contains multiple projects, repeat step 4 for each project you want to work with.
Add projects not containing Unity projects to your local machine
A repository must contain the file ProjectSettings/ProjectVersion.txt to be recognized as a Unity project. If you have been invited to a UVCS repository that doesn't contain a Unity project in the root directory, you can still add it to your local machine by following these steps:
- If you haven't already, install the UVCS desktop client.
- Download the repository contents to your local machine using the UVCS desktop client.
If the repository contains Unity projects within subdirectories, you can add them to the Hub after following the previous steps by doing the following:
- Click Add and select Add project from Disk.
- Navigate to the project location within your local workspace inside the downloaded repository.
Add projects from already added repositories
If you have already added a repository to the Hub, you can add more projects from the same repository by following these steps:
- Click Add and select Add project from disk.
- Navigate to the project location in your local workspace within the already downloaded repository.
If you want to use different workspaces for different projects in the same repository, allowing you to work on different branches for each project, follow these steps:
- If you haven't already, install the UVCS desktop client.
- In the UVCS desktop client, create a new workspace for the repository.
- In the Hub, click Add, select Add project from disk, and choose the project location in the new workspace.
Open your UVCS projects
When you open a project that you enabled UVCS on, the Editor opens the project with the Unity Version Control window open.
Note: If the Unity Version Control tab isn’t displayed, select Window > Unity Version Control to open it.
For information on how to use UVCS through the Unity Editor, refer to the Tutorials section.
Additional resources
- For information on the different UVCS features and functions available to you in the Unity Editor, refer to the VCS reference section.
- For information on how to set up, configure and manage Unity Version Control, refer to Configure Unity Version Control.
- To use Unity Version Control without the Unity engine, refer to Get started with Unity Version Control via the Desktop Client.
- For a tutorial on how to use UVCS with the Unity Hub, go to the Learn tutorial on how to use the Unity Hub.