Project 0: Spinning Cube

Part 1: Getting Your System Ready

Creating Your Unity ID

Create your Unity ID account at https://id.unity.com/.

Installing the Unity Hub

Go to https://unity3d.com/get-unity/download and click on the Download Unity Hub button. This will start the download for the installer executable file. Launch the Unity Hub once you have finished installing it.

Image showing which button to click on Unity download page

Activating Your License

Since this is your first time opening the Hub, you will land up at the License Management page with a notification message stating, “You have no valid license.” Click on the profile icon in the upper right corner and sign in to your Unity ID account.

GIF showing how to log in

Once you are logged in, you will see that the Activate New License button is no longer disabled. Click this button and select Unity Personal.

GIF showing how to activate license

Installing the Unity Editor

Note: This step could take 30 mins or longer. I would recommend finding something else to do while it downloads and installs in the background.

Click the back button to go to the Hub’s main page. Then go to the Installs tab and click on the Add button. Select the latest official release of Unity and click Next to select the modules you want to add. Here is some info about modules of interest for this class:

You may have to accept additional terms and conditions before the installation starts. If you are installing this version of Visual Studio on your computer for the first time, make sure to restart your computer after everything finishes installing.

GIF showing how to install Unity

NOTE: There appears to be a current problem with installing Unity on some Mac computers running macOS 10.15 Catalina where the Hub finishes downloading Unity but immediately exits without actually installing it. If this occurs to you, please follow the instructions at this post to resolve the issue.

Supported Code Editors

Unity supports the following C# IDEs. Make sure you have at least one of them installed.

Git Setup

Make sure your computer has both Git and Git Large File Storage (LFS) installed.

Next, create a file called .gitignore and place it in a permanent location on your computer. Then navigate to this website, find the gitignore file that is associated with your operating system, copy its contents into your newly created file, and save. Finally, open your terminal and enter the following command:

> git config --global core.excludesfile [INSERT PATH TO YOUR SAVED FILE]/.gitignore

We’ll go more into the importance of Git LFS and gitignores in the final section of this project.

Installing the Xcode IDE (Optional)

If you want to build and deploy your apps to iOS devices, you will also need to install Apple’s Xcode IDE from the Mac App Store. First, open up the App Store and click on the Develop tab. Xcode will be listed as the first app under the “Essential Apps for Developers” list. It is free, so you should be able to Get and Install it once you navigate to the app page.

GIF showing how to install Xcode

Open Xcode once it has finished installing from the App Store. You may have to wait for it to finish installing components. Once it is opened, follow these steps from the Xcode documentation to add your Apple ID account to your Xcode preferences.

Go Home | Next Section