如何使用Unity和Linux在VSCODE上配置IntelliSense?

发布于 2025-02-02 13:48:59 字数 160 浏览 3 评论 0原文

我最近切换到Linux,并且在Unity和Vscode方面存在问题。 当我打开任何脚本时,Monobehaviour之类的类不存在... 我发现您应该更改OmnishArp:使用全局单声道始终,但是该选项不存在。 (我已经安装了C#扩展名和单声道)

I recently switched to Linux and I have problems with Unity and VSCode.
When I open any of my scripts, classes like MonoBehaviour don't exist...
I found that you should change Omnisharp: Use Global Mono to always, but that option doesn't exist. (I have C# extension and mono installed)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我还不会笑 2025-02-09 13:48:59

对于任何有这个问题的人:

假设其他所有内容都是最新的,则将更改为 始终确实可以使用。您必须恢复为C#扩展的较旧版本才能在设置中查看该选项。 1.24.4对我有用。您可以通过转到“扩展名”选项卡,然后单击C#扩展程序旁边的齿轮图标,然后选择安装另一个版本...

在此处找到解决方案: https://forum.unity.com/threads /solved-unity-with-vs-code-andintellisense-on-linux-mint.986088/

For anyone who has this issue:

Assuming everything else is up to date, changing Use Global Mono to always does work. You have to revert to an older version of the C# extension to see the option in settings. 1.24.4 works for me. You can do this by going to the extensions tab, and clicking the gear icon next to the C# extension, and choosing Install Another Version...

Found the solution here: https://forum.unity.com/threads/solved-unity-with-vs-code-and-intellisense-on-linux-mint.986088/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文