如果在unity编辑器底端出现了这样的报错 字样,你的game进程可能会受到影响
Plastic scm的报错:
CmClientException: The client configuration file "client.conf" contains errors: Root element is missing.
Codice.Client.Common.ClientConfigData.Deserialize (System.String filename, System.Boolean bThrowOnError) (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Codice.Client.Common.ClientConfigData.Load (System.String filename) (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Codice.Client.Common.ClientConfig.InitFromFile (System.String fileName) (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Codice.Client.Common.ClientConfig.Get () (at <8d9c715c82d0486d94302c11b07ddc1c>:0)
Unity.PlasticSCM.Editor.FindWorkspace.PathForApplicationPath (System.String path) (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/FindWorkspace.cs:21)
Unity.PlasticSCM.Editor.FindWorkspace.HasWorkspace (System.String path) (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/FindWorkspace.cs:12)
Unity.PlasticSCM.Editor.PlasticPlugin..cctor () (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/PlasticPlugin.cs:55)
Rethrow as TypeInitializationException: The type initializer for 'Unity.PlasticSCM.Editor.PlasticPlugin' threw an exception.
Unity.PlasticSCM.Editor.CollabMigration.CloudProjectId.HasValue () (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/CollabMigration/CloudProjectId.cs:9)
Unity.PlasticSCM.Editor.CollabMigration.MigrateCollabProject.RunOnceWhenAccessTokenAndProjectIdAreInitialized () (at ./Library/PackageCache/com.unity.collab-proxy@2.2.0/Editor/PlasticSCM/CollabMigration/MigrateCollabProject.cs:33)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <57799cfc78614a8e9fed14dd59f3901a>:0)
这是由于在使用 Plastic SCM 作为版本控制工具中, client.conf 文件出现了问题,这个文件是用来存储 Plastic SCM 的主要用户偏好的,它位于隐藏文件夹 Users/youruser/.plastic4 (Mac) 或 Users/youruser/appdata/local/plastic4 (windows) 中。
文章来源地址https://www.toymoban.com/news/detail-799524.html
解决方案:
关闭 Unity 编辑器,删除 client.conf 文件,然后重新打开 Unity 编辑器。这样,Unity 编辑器会在下次启动时重新生成 client.conf 文件。文章来源:https://www.toymoban.com/news/detail-799524.html
到了这里,关于unity编辑器PlasticSCM报错处理的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!