You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unity打包报错:BurstCompiler(1.1.1)运行失败,无Visual Studio

Unity打包报错:Unity-BuildFailedException: BurstCompiler(1.1.1) Failed Running 解决方案

问题描述

安装Unity后制作了一款简单游戏,使用Build及Build and Run功能打包时失败。当前使用Visual Studio Code进行Unity代码编写,点击打包按钮数秒后出现报错:

Unity-BuildFailedException:BurstCompiler(1.1.1) Failed Running

解决步骤

  • 临时禁用Burst编译器:打开Unity的Edit > Project Settings > Player,在Other Settings面板的Scripting Define Symbols中添加DISABLE_BURST_COMPILER,重启Unity后再尝试打包,可临时绕开Burst编译问题。
  • 更新/降级Burst包:打开Window > Package Manager,找到Burst包,根据当前Unity版本选择升级到最新兼容版本或降级到稳定匹配版本。旧版Burst常存在与新Unity版本的兼容性问题。
  • 修复VS Code的Unity配置:确保VS Code安装了官方Unity Development扩展,在Unity的Edit > Preferences > External Tools中,将外部脚本编辑器设置为Visual Studio Code,并勾选Generate all .csproj files,重新生成项目文件后再执行打包操作。
  • 清理Burst缓存:找到项目目录下的Library/BurstCache文件夹,删除其中所有文件,重启Unity让Burst重新生成缓存,可解决缓存损坏导致的编译失败。
  • 补充系统编译依赖:Burst编译需要C编译环境支持,Windows系统可安装Visual Studio Build Tools(无需完整安装VS),勾选“C生成工具”组件,安装完成后重启电脑再尝试打包。

内容的提问来源于stack exchange,提问作者محمد جواد حق بیگی

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.24 17:39:40