Unity development environment configuration

Unity body installation

1. First download and install unityhub, the Chinese pipe network https://unity.cn/
2. Log in to unityhub, select the version you want to install
insert image description here
insert image description here
After selection, follow the prompts to select a personal free trial license, and then wait for the unity body to download and install.

VSCode installation and configuration

1. Go to the official website https://code.visualstudio.com/ to download vscode
2. Associate vscode in unity as an editor, select vscode in edit->preferences
insert image description here

3. Create any GameObj and bind Script, double-click the script to open vscode
insert image description here
4. Restart vscode and unity, then open vscode according to 3, and check the version of the C# toolkit that needs to be installed
insert image description here
. 5. Install the C# toolkit, remember your version number, go to This downloads the developer version of the .NET Framework corresponding to the version number.
https://docs.microsoft.com/en-us/dotnet/framework/deployment/deployment-guide-for-developers

insert image description here
6. Install the vscode c# plug-in (installation is recommended when opening a C# file)
insert image description here
7. After installing the plug-in, you will be prompted to install the .NET sdk, follow the prompts to install the .NET core sdk
(restart the computer after installation, mainly to let vscode find the dotne.exe environment variable)
insert image description here
8. So far the configuration is complete, and the code will be prompted automatically.

Guess you like

Origin blog.csdn.net/qq_21768483/article/details/128949067