开发平台:Unity 2020版本以上
问题截图
注意:这是一个工程操作不规范导致的问题。
解决方案
- 点击”OK“并前往 Unity Console 进行问题信息查询。
- 根据实际情况,这里以笔者遭遇内容为主进行记录,若后续有同类型遭遇但问题不同,将会更新解决方案至此文章中以供参考。
Debug 问题一:
- 问题描述
Error while saving Prefab: ‘Prefab路径’. You are trying to save a Prefab with a missing script. This is not allowed. Please change the script or remove it from the GameObject ‘Prefab名称’. UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()```
- 问题原因:预制体中存在脚本引用丢失的组件。导致 Prefab 无法保存。
- 解决方法:查找预制体内,引用丢失的组件,重赋值或删除丢失引用组件即可。