Unity Scripts edited in Visual studio don't provide autocomplete

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

    Update 2020 with Visual Studio Community 2019 and Unity 2019.3:

    1. Open Visual Studio Installer as Administrator, select to modify your current installation and add "Game development for Unity"

    2. If you add a new c# script in Unity now, and open it (automatically) with Visual Studio, it is not described as "Miscellaneous" at the top of the window but with "Assembly-CSharp", and the autocomplete works.

提交回复
热议问题