Getting Visual Studio to work in Unity again

Short post this week as I spent most of it playing the fantastic Jedi Fallen Order. I may do a write up of this as it had some very interesting ways in which the narrative was presented. I may be doing more of these since I am starting a part time PhD in January in using AI to create and manage narratives/stories in open world RPGs.

Anyhow back on topic this week I wanted to put in some backgrounds for a physics type game I am making. I needed to change the sorting layer for the line renderer which is created in a C# script. A great source of 2D art for games can be found here. Well worth a subscription.

When opening the script I noticed It was no longer loading in the full project and that intellisense was not working.

Here’s how I fixed it.

First I had to point the project to open visual studio, for some reason this no longer appears in the list, this was after updating unity to 2019.2.13

Go into the preferences that can be found by clicking Edit->Preferences then External Tools when the dialogue appears.

You need click on Open File By Extension and then find your DevEnv.exe file. This is normally located at “C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE”.

You then may be asked to download the “.Net Framework 4.7.1 Developer pack” this can be found here.

After that the full vs project for your unity game will then open correctly.  I’ll do another write up soon on how I created the parallax background system for my game. Right now I am far to busy watching Season 2 of Final space (love Mooncake) and waiting for a pizza to arrive. 😛

Leave a comment

Your email address will not be published. Required fields are marked *