How to Setup Visual Studio Code for Unity | Game Development With Unity Sinhala 2022 🇱🇰

Опубликовано: 04 Октябрь 2024
на канале: Piusha Ariyarathna
859
71

▶️In this video, I'm going to show you how to set up Visual Studio Code for Unity and have full autocomplete features on windows 10.

🎬Timestamps
00:00 - Introduce
01:54 - How to setup visual studio code for unity
11:08 - End

🔰Links:

●Download Vs Code Here: https://code.visualstudio.com/download
●Vs Code for Unity Guidelines: https://code.visualstudio.com/docs/ot...
●4.7.1 Targeting Pack: https://dotnet.microsoft.com/en-us/do...
●Other Targeting Packs: https://dotnet.microsoft.com/en-us/do...
(Download the developer pack when getting a targeting pack)
● Download Unity: https://store.unity.com/#plans-business
● Whatsapp Group Link -https://chat.whatsapp.com/BjpUGKOboi0...
●YouTube Subscribe:   / @piushaariyarathna9223  
●Instagram :   / piusha_ariyarathna  

🔰My Other Videos:

🔺How to setup unity hub and editor in windows 10:    • Introduction to Unity Gaming - Game එ...  
🔺Unity basic 1st video -    • How to Make a Video Game with Unity -...  

🔺Note: the timings shown in this video are based on my machine, they might be much higher or lower on your PC so be patient with it.

In this video, I'm going to show you how to download and set up visual studio code and link it to unity on windows 10, and then unlock its full autocomplete features for faster and more convenient coding.

First, we're gonna start by downloading and installing visual studio code which is a lightweight code editor with really nice features and compatibility with a lot of languages and plugins. We will install vs code in a folder of our choice for better organization.

Then we will add the first extension to vs code which will allow us to type and run C# script from inside and will give us hints and tips about C# features.

After that, we will open the vs code guidelines for proper linking to unity where you can see all the steps you need to take in order to complete the setup properly for everything to work fine.

Then, we will start a project in a destination of our choice just so we will have access to the menu so we can link vs code as a script editor and update its plugin version.

After the project is open we can go to the edit menu and change the external tools to use vs code as the external script editor to work with unity. This will allow you to open and edit unity scripts in visual studio code and will automatically open the unity script in vs code when you double click on them.

Then, we will download and install the main .NET SDK which is a cross-platform open source development platform available for everybody to use. This is required for a lot of C# functionality to work properly.

After that, we will install the remaining visual studio code extensions that are needed for unity which will give us some neat features and tools such as a debugger for unity and code snippets that will make our coding much faster. Then we will restart our PC to let the .NET SDK go into effect.

We will also check out the unity package manager to make sure we have the latest plugin version for visual studio code installed which is required for it to work properly.

The most likely issue you will run into is the Missing .NET SDK Targeting pack which will make your autocomplete to not work until you fix it. So I will walk you through on how to solve this problem. The way you do it is by reading the console and finding out which targeting pack you actually need and then downloading and installing it which will fix the problem and make autocomplete work again.

and Lastly, we will make sure that autocomplete finally works properly and that everything is fine with our Visual Studio Code and Unity linking setup.

▶️my tags :unity,visual studio code,how to setup visual studio code for unity tutorial,piusha ariyarathna,unity tutorials,unity game development,unity programming,unity probuilder,c# projects,c# tutorial,c# tutorial for beginners,how to make game,how to make game with unity hub,shorts,unity tutorial,unity game dev,unity3d,unity game devlog,game devolopment,game development for beginners,game development,game development course,3d games made with unity,unity 3d,3d

Subscribe!

and

Don't forget to share this video


Thanks for watching! :)