我有KDE neon(基于Ubuntu 18.04)。我已经从此链接安装了最新的Linux版本的Unity3D 。
我需要一个C#脚本编辑器才能开始开发C#项目。如何设置Visual Studio Code与Unity3D项目一起使用?我需要它来自动完成代码并强调编译错误。
请注意,以下说明包含特定于18.04的命令。如果您使用的是其他版本的Ubuntu或Linux,请检查来源。
Mono is an open source implementation of Microsoft's .NET Framework sponsored by Microsoft. Instructions for a repository installation:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-devel
(Source). It also has instructions for 16.04 and 14.04.
wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.1
(Source). It also has instructions for 16.04, 14.04 and others.
Select the debug view on the left and click the cogwheel.
In the drop down list select “Unity Debugger”. If you do not have Unity Debugger in the list, then you already have a .vscode/Launch.json file in your project that you must delete first.
You will now have a .vscode/Launch.json file in your Unity project folder and can select which Unity target you wish to debug.
(来源)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句