> 文档中心 > Unity bug seems to have merge conflicts. Please open it in a text editor and fix the merge.

Unity bug seems to have merge conflicts. Please open it in a text editor and fix the merge.


项目场景

Unity2020 一个普通的scene


问题描述

通过Git进行项目管理,出现冲突之后,场景就打不开了

具体来说就是场景在git中发生了冲突,同时没有解决冲突的情况下打开场景
或者说解决了冲突但是任然打开场景报错
Unity bug seems to have merge conflicts. Please open it in a text editor and fix the merge.

原因分析:

Unity的Scene在Git里面其实是一个二进制文件
所以发生冲突的时候,Git会在里面记录冲突,标记之后就打不开了
Unity bug seems to have merge conflicts. Please open it in a text editor and fix the merge.

解决方案:

博主链接
将txt文件中记录git冲突的区间全部删掉,就可以打开了
Unity bug seems to have merge conflicts. Please open it in a text editor and fix the merge.