VS2022与UE5热重载失效问题排查及解决记录
解决Unreal Engine 5 + Visual Studio 2022热重载异常问题
问题描述
- 在Visual Studio 2022中修改代码后触发热重载,频繁弹出“存在无法编译的更改”提示
- 代码本身无语法或逻辑错误,重启Unreal Engine 5后程序可正常运行,但反复重启严重降低开发效率
- 同时收到编译错误提示:
'Kirito.h' in 'UnrealEditor-saofb.dll' was not compiled with Edit and Continue enabled. Ensure that the file is compiled with the Program Database for Edit and Continue (/ZI) option at Project Properties > C/C++ > Debug Information Format.
- 已尝试开启VS调试>常规中的Edit and Continue选项,且在Unreal Engine Discord社区求助,均未解决问题
解决方法
单独启动Unreal Engine 5,在编译时按下快捷键 Ctrl+Alt+F11,即可正常完成热重载,不再弹出错误提示。
内容的提问来源于stack exchange,提问作者nugget
相关产品推荐
相关产品推荐

