Unity Scripts edited in Visual studio don't provide autocomplete

前端 未结 26 1485
半阙折子戏
半阙折子戏 2020-11-22 10:02

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn\'t work.

Here you c

26条回答
  •  伪装坚强ぢ
    2020-11-22 10:08

    one of the above methods are worked for me and I just found a solution to this problem,
    1. First, go to the project directory and delete .sln file
    2. Second, go to unity and double click your script. Then Visual Studio will be open with an error,

    1. Then click ok and close Visual Studio editor.
    2. Finally, turn off your Windows Defender and then go to your project directory and there will be .csproj file. Just double click and open this from your Visual Studio editor and open the scripts folder inside the assets folder and open the scripts and autocompletion will be working perfectly fine.

提交回复
热议问题