Back to homepage • software resources guide • Unity setup guide
An IDE is an Integrated Development Environment. You can think of Unity as an IDE for developing the game objects, assets, and the world itself. But what about the code that powers the game? Unity uses a programming language called C# to power its scripts, and this requires something known as the .NET Framework from Microsoft. This guide will walk you through setting up everything.
If you're an experienced developer, follow the quickstart. Otherwise, jump down to Installation to follow a more detailed guide with screenshots.
- Get a text editor of your choice. I use VS Code. If you also use VS Code, install the C# Plugin.
- Install the .NET Core SDK, and refresh your PATH.
- You'll need a text editor of your choice. I reccommend VS Code, as it has a lot of powerful features, like linting, IntelliSense, and more.
- Now you'll need a .NET Framework SDK. Download the .NET Core SDK for VS Code or the .NET Core SDK if you chose another code editor.
- If you chose to go with VS Code, I reccommend installing the C# Plugin so you get support in your code editor for all of its fancy features.
- Reboot your computer.
The C# extension in VS Code replicates the C# functionality you might see in VS Community (the most popular IDE for C# development), which includes a feature called CodeLens which can display things like the number of times your variable is referenced. If you're like me, you probably find this super annoying, so I was able to disable it by unchecking the setting: Extensions > C# configuration > Csharp > Reference Code Lens.
If you need steps on how to do this:
- Press
Ctrl + Comma
on your keyboard, then search forcodelens
. - Under Extensions, click C# configuration.
- Find Reference Code Lens and uncheck it.