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",

}

]

}

相关推荐
爱搞虚幻的阿恺9 天前
Niagara粒子系统-超炫酷的闪电特效(加餐 纸牌螺旋上升效果)
游戏·游戏引擎
_Li.9 天前
Simulink - 6DOF (Euler Angles)
人工智能·算法·机器学习·游戏引擎·cocos2d
weixin_424294679 天前
Unity 调用Steamworks API 的 SteamUserStats.RequestCurrentStats()报错
unity·游戏引擎·steamwork
HoFunGames9 天前
Unity小地图,Easy Minimap System MT-GPS插件
unity·游戏引擎
wy32586436410 天前
Unity 新输入系统InputSystem(基本操作)
unity·c#·游戏引擎
WarPigs10 天前
着色器multi_compile笔记
unity·着色器
ECHO飞跃 01210 天前
Unity2019 本地推理 通义千问0.5-1.5B微调导入
人工智能·深度学习·unity·llama
Unity游戏资源学习屋10 天前
【Unity UI资源包】GUI Pro - Casual Game 专为休闲手游打造的专业级UI资源包
ui·unity
冰凌糕10 天前
Unity3D Shader 顶点法线外扩实现描边效果
unity
星和月10 天前
Untiy使用说明
c#·游戏引擎