You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Unity创建新项目时出现NullReferenceException错误求助

解决Unity创建新项目时的PlasticSCM空引用错误

错误信息(中文翻译)

NullReferenceException: 对象引用未设置到对象的实例
Unity.PlasticSCM.Editor.ProjectDownloader.ParseArguments.GetOrganizationNameFromData (System.String data) (at Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/CloudProjectDownloader/ParseArguments.cs:42)
Unity.PlasticSCM.Editor.ProjectDownloader.ParseArguments.CloudOrganization (System.Collections.Generic.Dictionary`2[TKey,TValue] args) (at Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/CloudProjectDownloader/ParseArguments.cs:24)
Unity.PlasticSCM.Editor.ProjectDownloader.CloudProjectDownloader.DownloadRepository (System.String unityAccessToken, System.String[] commandLineArgs) (at Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/CloudProjectDownloader/CloudProjectDownloader.cs:63)
Unity.PlasticSCM.Editor.ProjectDownloader.CloudProjectDownloader.DownloadRepository (System.String unityAccessToken) (at Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/CloudProjectDownloader/CloudProjectDownloader.cs:51)
Unity.PlasticSCM.Editor.ProjectDownloader.CloudProjectDownloader.Execute (System.String unityAccessToken) (at Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/CloudProjectDownloader/CloudProjectDownloader.cs:43)
Unity.PlasticSCM.Editor.ProjectDownloader.CloudProjectDownloader.RunOnceWhenAccessTokenIsInitialized () (at Library/PackageCache/com.unity.collab-proxy@2.0.3/Editor/PlasticSCM/CloudProjectDownloader/CloudProjectDownloader.cs:32)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <e3d2e3f6a525465bbf8c67432a3cb6ef>:0)

具体解决步骤

  • 清理项目缓存:关闭Unity,删除项目目录下的Library文件夹,重新启动Unity等待缓存自动生成。
  • 更新Collab代理包:打开Unity的Package Manager,找到com.unity.collab-proxy包,更新至最新稳定版本,或降级到已知可用的旧版本。
  • 重置版本控制配置:进入Edit > Project Settings > Version Control,将Mode切换为Visible Meta Files,重启Unity后再切换回Plastic SCM。
  • 跳过云下载流程:直接创建本地空项目,后续再手动配置PlasticSCM或Collab功能。
  • 重新授权Unity账号:退出当前登录的Unity账号,重启编辑器后重新登录,确保账号拥有对应组织的访问权限。

内容的提问来源于stack exchange,提问作者OJI

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.21 06:59:56