Are you ready to get into game development with Unity? You’ve made a great choice! It’s is one of the most popular game engines for practically anything you can imagine, from PC to console to mobile and XR; it’s all possible with Unity.
Let’s set you up for success! In this post, I’ll walk through installing a package manager for Windows called Chocolatey, which we’ll use to install Unity Hub (and for other applications in future posts).
There are a few reasons for using a package manager:
- Speed: Package managers act as a central repository for applications, meaning you don’t need to waste time find download links.
- Automation: Once you have a core set of applications you know you’ll need, you can automate the setup of a new machine quickly via script.
Hopefully, I’ve sold you on the idea! Leave a comment if you have another package manager of choice (and tell me why it’s Scoop 😉 ).
It’s easy to download and install Chocolatey. I’ll be using PowerShell via Windows Terminal.
Visit the Chocolatey Installation page and follow the instructions. It will instruct you to run a single command, and if all goes well, this step is complete!
To verify, run the
version command. If you get a response similar to the following, you’re good to go.
Install Unity Hub via Terminal
With Chocolatey installed, let me show you how simple it is to search for new packages to install using the
search command. Here’s a search for Unity Hub.
One result, and just the one we want! Perfect. Notice the package name is "unity-hub." That’s the name we’ll need to provide to the
install command to download and install it automatically.
-y flag passed in the following command automatically confirms all prompts, which will accept the license as well. If you don’t want to do this, run the command below without this flag. I’m also passing
--ignore-checksums because as of the writing of this post, the version that’s downloaded is higher than the package is expecting (2.4.2 vs 2.4.3).
Once it’s finished, you’ll have Unity Hub installed and ready to launch! Go ahead and launch it from the Windows Start Menu using the Windows key and typing "Unity Hub."
Install Unity Editor via Unity Hub
Here’s is the moment you’ve been waiting for, we’re finally installing the Unity editor. In this case, I’ll install the latest LTS version, but feel free to install the version(s) you want.
First, sign in to Unity Hub and then navigate to "Installs" and click the "Add" button on the top right. On the subsequent screens, you’ll be able to pick the version of Unity you want to install, as well as any additional packages.
Now it’s time to wait for Unity to download and install, then you’re done! I hope you find this post helpful on your first steps to learning game development with Unity. I’m excited for you!
Please feel free to ask here or reach out to me on Twitter if you have any questions.