unity 使用VS Code 开发,VS Code配置注意事项

vscode 对应的插件(unity开发)

插件:.Net Install Tool,c#,c# Dev Kit,IntelliCode For C# Dev Kit,Unity,Unity Code Snippets 本人现在是用了这些插件

unity需要安装Visual Studio Editor

1、.Net Install Tool 设置

需要在设置里面配置路径避免每次打开都要下载最新的net版本

cs 复制代码
"dotnetAcquisitionExtension.existingDotnetPath": [
        {
            "extensionId": "ms-dotnettools.csharp",
            "path": "C:\\Program Files\\dotnet\\dotnet.exe"
        },
        {
            "extensionId": "visualstudiotoolsforunity.vstuc",
            "path": "C:\\Program Files\\dotnet\\dotnet.exe"
        }
    ]

上述图中选项要取消选中

2、配置MonoPath

3、配置sdkPath

vscode 调试配置(在每个项目下配置)

{

// Use IntelliSense to learn about possible attributes.

// Hover to view descriptions of existing attributes.

// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

"version": "0.2.0",

"configurations": [

{

"name": ".NET Core Attach",

"type": "coreclr",

"request": "attach"

},

{

"name": "Attach to Unity",

"type": "vstuc",

"request": "attach",

}

]

}

相关推荐
平行云13 小时前
Paraverse平行云实时云渲染助力第82届威尼斯电影节XR沉浸式体验
unity·云原生·ue5·xr·实时云渲染
Xeon_CC15 小时前
Unity中,软遮罩SoftMaskForUGUI的使用
unity·游戏引擎
DanmF--19 小时前
NGUI--三大基础组件
unity·游戏引擎
SmalBox19 小时前
【URP】Unity3D物体遮罩的多种方案实现
unity·渲染
Xeon_CC20 小时前
Unity中,软遮罩SoftMaskForUGUI可移动遮罩形状实现方法
unity·游戏引擎
Yasin Chen21 小时前
Unity Standard Shader 解析(五)之ShadowCaster
unity·游戏引擎
我想_iwant1 天前
android集成unity后动态导入 assetsBundle
android·unity·游戏引擎
EQ-雪梨蛋花汤1 天前
【踩坑记录】Unity 项目中 PlasticSCM 掩蔽列表引发的 文件缺失问题排查与解决
unity·游戏引擎
Thinbug2 天前
Unity 枪械红点瞄准器计算
unity·游戏引擎
我想_iwant2 天前
unity中的交互控制脚本
数码相机·unity·交互