Home > Net >  not able to properly open c# files in unity
not able to properly open c# files in unity

Time:01-11

im trying to get into unity but i seem to have a problem. every time i try to open a script from unity it launches the script into VS but instead of letting me run the script it just says "Attach" and its not giving me any unity code in the auto complete section while im writing it also says its a Miscellanous file at the top left of the screen where it should say its a c# project and i cant seem to get it to work, i would love some help. i have tried to attach the project to unity yet that dosent work in addition to that the project bar where i would usually see my project and scripts in the right side of the screen dosent show up, its like im in some sort of limited read-only mode of the script. thanks in advance.

CodePudding user response:

Microsoft actually made a quick guide that might be the solution.

https://docs.microsoft.com/en-us/visualstudio/gamedev/unity/get-started/getting-started-with-visual-studio-tools-for-unity?pivots=windows

From what I understand is that you want to code the C# scripts in VS.

CodePudding user response:

i found the awnser i just needed to go into Edit -> Perference -> external tools -> and then select visual studio in external script editor

  •  Tags:  
  • Related