Hello! first i have to say I’m a beginner so i hope don’t sound dumy with this question.
I just installed Visual Studio 2019 and Unity but i don’t know how to set it up to use it in Unity.
I just went trough Edit
→ Preferences
→ ExternalTools
and select Microsoft Visual Studio 2019 as the the External Script Editor
.
I also Checked all the boxes of the Generate .csproj file for:
section.
I wanna know if there is something else that i have to do or something that I’m missing?
Did you install the “Game Development with Unity” Extension when installing Visual Studio?
You can check by opening Visual Studio
Tools > Get Tools and Features…
Search for the “Game Development with Unity” Workload and install it.
After that do the things you described in your post again and you should be ready to go.
To use Visual Studio you just create a Script by right-clicking in the Project Window and selecting Script.
You can then name your script and can then press Enter after you’re done.
After double clicking the Script Visual Studio should open up where you can edit your script.
Have fun Scripting ^^
In case your Visual Studio does not auto complete stuff for you, follow the following steps:
- Open Visual Studio Installer, go to Workloads tab, make sure that GameDev with Unity is added
- In Unity go to Edit > Preferences, select External tools tab, set up your Visual Studio as an external editor.
You can find a more detailed step by step guide in Microsoft’s site: Quickstart: Install & configure Visual Studio Tools for Unity | Microsoft Learn