|
1.需要安装 vsCode
2.安装monoSDK 配置环境变量 export FrameworkPathOverride=/Library/Frameworks/Mono.framework/Versions/Current
3.安装.Net SDK
4.安装Unity LTS
5.Unity里修改, 左上角 Unity -> Preferences->External Tools -> External Script Editor -> vsCode
6.vsCode 里 需要安装拓展 C#、C# Extensions、Debug for Unity、Unity Code Snippets、Unity Tools
vsCode 里 设置,搜索C# ,修改"omnisharp.monoPath": "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono", "omnisharp.useModernNet"=false
<hr>
做完上面的步骤就有代码补全(代码提示)啦,否则可能没有Unity里的代码提示 |
|