Unity Scripts edited in Visual studio don't provide autocomplete

前端 未结 26 1799
半阙折子戏
半阙折子戏 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:10

    My autocomplete also didn't work because Visual Studio Tools for Unity wasn't installed. So, after you install that, delete the auto generated Visual Studio files. Others said that you open file again and the problem is solved but it's not.

    The trick is: instead of normally double-clicking the file, you need to open the C# file from Unity by right click and then "Open C# Project".

提交回复
热议问题