unity3d 打开项目的时候出现Enter Safe Mode的原因以及解决方法

分类栏目:unity3d教程

169

unity3d有时我们打开项目时会突然显示 the project you are opening contains compilation errors. entering safe mode allows you to resolve these erros without waiting for the rest of your project to import. if you select ignore(not recommended),your project will continue to import,but it may be in a broken or unusable state.这句话

然后按钮有Enter Safe Mode 和 Ignore 和Quit 这3个

分别意思是进入安全模式 和 同意  还有 退出


出现问题的原因是,项目中有脚本编译错误导致。


此时选择Enter Safe Mode会相对省时,打开项目之后,排查脚本的出错情况,修正之后,重新打开项目即可。


如果选择Ignore的话,会整个项目都重新导入,非常耗时。

所以一般情况下,选择Enter Safe Mode,然后修正,重新打开项目即可。