【发布时间】:2019-12-11 17:03:00
【问题描述】:
我正在尝试设置我的 VS Code,以便正确处理使用 Windows 10 作为操作系统的 Unity 项目。这就是我所做的:
- 安装 Unity v.2019.3.0a2;
- 安装 Visual Studio Code v.1.40.2;
- 安装 C#(Visual Studio Code 扩展);
- .Net 的安装;
- 将 VS Code 设置为 Unity 脚本编辑器(如 here 所述);
此时我在 VS Code 工作区中导入了我的项目根文件夹,但 IntelliSense 功能不起作用。所以我读了this guide 然后我跑了:
dotnet new console
dotnet run
现在看来,IntelliSense 可以工作,但 VS Code 无法识别 Unity 类,因此,我的项目充满了错误。有没有办法修复它或导入 UnityEngine 包?
【问题讨论】:
标签: c# .net unity3d visual-studio-code