Doers of Stuff.org

Indie Game Dev & Simulation Engineer | Unity + C# Wizard | Building Worlds, One Line of Code at a Time

And Unity For All!

Unity is one of the most popular game development engines available today, and it’s free for the cost of pointing and clicking. By and large, the installation is straight forward. This is especially true if you manage the installation through the Unity Hub as recommended. By installing Unity Hub first, you can manage both your projects and your Unity Editor versions.

Yes, versions. One of the interesting things about Unity is probably a side effect of its popularity and its rapid development. Old code bases are not easily or cheaply upgraded to use the new engines. Therefore, the older engines have to be kept around and minimally maintained, which has some interesting implications for those of us just starting out.

As you’ve probably already seen, the web is full of old tutorials that never go away. The frustrating thing about these tutorials is they don’t keep up with the ever-changing versions of Unity. This does not make the tutorial useless, especially to a brand-new coder. But it does mean an interesting tutorial that starts out as a pleasant little walk in the park, suddenly turns into an agonizing snipe hunt for where certain features have been moved or renamed.

Thanks to Unity Hub however, those old tutorials can live on and maintain all their value and glory. All we have to do is install the version matching the tutorial and walla! Walk in the park again.

While the installation of a single version of the Unity Editor is not terribly interesting, the installation and configuration of many is. So, let’s take a look at some of the options available to us.

On my workstation, you can see I actually have two different patch versions of 2019.4 and two minor versions of 2023. The Unity Documentation describes the Unity Versioning system and compatibility between versions.

While this might seem excessive there is literally no reason (except maybe the extra disk space required) keeping you from doing this. What it allows you to do, is install precisely the version you need or want. Whether this is because you are maintaining an old code base, working with another developer, or just want that YouTube tutorial to matchup exactly with what you are doing. You can do that.

The next interesting thing about Unity Hub is the ability to add components to each editor version as needed. For instance, you can see for each version I have installed the same editor modules. Namely, Universal Windows Platform, WebGL, iOS and Windows.

But what if we want to add Android support, but only want to do it for a single version of the editor. Well, easy-peasy. Click the gear icon in the upper right portion for the editor version you want to add Android support to and point-n-click your way through it.

Now, before we go, let’s look at just one more bit of interest. Unless you already have a favorite IDE for the actual C# code writing, you should know the Unity Editor (at least on Windows) comes ready to install Microsoft Visual Studio as well.

Visual Studio, just like Unity editor is still available for many different versions that can still be installed side by side. Furthermore, Visual Studio also has a few plugins and add-ons which can be managed version by version. This can be done both at installation time, and later on.

If you do not have Visual Studio installed yet, it is a simple matter of selecting it and clicking the Install button. The only difference between this and the other options, is Unity Hub will actually invoke the Visual Studio Installer. If you have Visual Studio already installed and want to add a component, you will have to start the Visual Studio Installer directly. This can be done by finding it in the Add/Remove Programs section of your Window Settings, from the Windows Application Menu (invoked by pressing the Windows Key or the Windows icon in the lower left of your desktop) or be searching for “Visual Studio Installer.” 

As you can see, I have two versions of Visual Studio installed. The versions correspond with the versions of Unity I have installed. You can see I also have updates available for both of them, which I can install from here.

Clicking the Modify button for the desired version will launch a new dialog allowing you to add modules to that version.

Scrolling through, you will see quite a few addons and additional support you can install. At the very least, you should add the “Game Development with Unity” support.

The last thing you may need to do is tell Unity which version of Visual Studio to invoke. This is important, because out of the box, the integration between Visual Studio and Unity makes some assumptions about where to find C# so it can compile, code highlight and complete and all that fancy stuff. While you can probably configure a particular version of Visual Studio to use a particular version of C# for a particular project in a particular version of the Unity Editor that all kinda goes against the grain of “just make this tutorial work like it does in the video…” goal. So, in the Unity Editor, select Edit -> Preferences -> External Tools and set the External Script Editor to the version of Visual Studio most appropriate to that version of Unity.

Now, are you starting to feel a little like a Time Traveler? If you’re bored, why not try out a nine-year-old tutorial? 

Leave a Reply