PISCOnoob

导航

Unity 2021.x新建项目提示Enter safe mode/新建项目报错

以前一般是打开旧的工程,而里面有编译等错误,或者用不同版本打开不同工程就会出现“Enter Safe Mode”,近期发现新版本(2021.X)的editor新建项目也会出现“Enter Safe Mode”。

Safe Mode - Unity 手册

情况一:

勾选了托管至plastic SCM导致的,用不上的话不勾就好,或者新建项目成功后再托管。

情况二:

点击进入Enter safe mode后会有一系列报错

Library/PackageCache/com.unity.XXXXXXXXX

遇到过好多种不同的包报错,要不就是升级至最新版本,要不就remove掉,一般就这样解决了。

比如:

visualscripting@1.5.2的报错,点击Exit safe mode

 

 

点开packageManager找到这个包升级到最新版本就好

有时候包还是pre版本,还需要在package manager的设置中Advance的settings

把enable pre-release packages勾选上

还有:

Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e) Copyright (C) Microsoft Corporation. All rights reserved.

error CS2015: 'E:\unitytest\lowpolytest\Library\PackageCache\com.unity.test-framework@1.1.16\UnityEditor.TestRunner\TestLaunchers\TestLauncherBase.cs' is a binary file instead of a text file error CS2015: 'E:\unitytest\lowpolytest\Library\PackageCache\com.unity.test-framework@1.1.16\UnityEditor.TestRunner\TestSettings\ITestSettings.cs' is a binary file instead of a text file error CS2015: 'E:\unitytest\lowpolytest\Library\PackageCache\com.unity.test-framework@1.1.16\UnityEditor.TestRunner\TestSettings\TestSettingsDeserializer.cs' is a binary file instead of a text file

remove掉

具体还是得看看自己项目里用不用这个包,一般我是升级优先与remove,毕竟是新建工程后自带的包,说不定还是有用的。

 

如果你有其他方法解决,欢迎在评论区分享!

posted on 2022-04-08 10:41  PISCOnoob  阅读(1266)  评论(0编辑  收藏  举报