Unity Scripts edited in Visual studio don't provide autocomplete

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

    i found my solution by creating the .cs file from visual studio itself instead of unity editor

    • right click on project folder in solution explorer
    • add > new item
    • type "unity" on the search field on the top right
    • select "CSharp MonoBehaviour"
    • name your script on the bottom and click Add

提交回复
热议问题