意味不明のエラーでプロジェクト頓挫
こんなエラーが出ました。
ArgumentException: An item with the same key has already been added. Key: Assets/Prefabs/Weapon01.prefab
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Unity.Cloud.Collaborate.Models.ChangesModel.UpdateChangeList (System.Collections.Generic.IReadOnlyList`1[T] list) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/ChangesModel.cs:175)
Unity.Cloud.Collaborate.Models.ChangesModel.OnReceivedChangeList (System.Collections.Generic.IReadOnlyList`1[T] list) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/ChangesModel.cs:140)
Unity.Cloud.Collaborate.Models.Providers.Collab.RequestChangeList (System.Action`1[T] callback) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/Providers/Collab.cs:462)
Unity.Cloud.Collaborate.Models.ChangesModel.OnUpdatedChangeList () (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/ChangesModel.cs:118)
Unity.Cloud.Collaborate.Models.Providers.Collab.OnChangeItemsChanged (UnityEditor.Collaboration.ChangeItem[] changes, System.Boolean isFiltered) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/Providers/Collab.cs:134)
UnityEditor.Collaboration.Collab.OnChangeItemsChanged (UnityEditor.Collaboration.ChangeItem[] changes, System.Boolean isFiltered) (at <25e9afc147634a5ca855ab83fab425dd>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <695d1cc93cca45069c528c15c9fdd749>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <695d1cc93cca45069c528c15c9fdd749>:0)
Unity.Cloud.Collaborate.Models.ChangesModel.UpdateChangeList (System.Collections.Generic.IReadOnlyList`1[T] list) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/ChangesModel.cs:175)
Unity.Cloud.Collaborate.Models.ChangesModel.OnReceivedChangeList (System.Collections.Generic.IReadOnlyList`1[T] list) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/ChangesModel.cs:140)
Unity.Cloud.Collaborate.Models.Providers.Collab.RequestChangeList (System.Action`1[T] callback) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/Providers/Collab.cs:462)
Unity.Cloud.Collaborate.Models.ChangesModel.OnUpdatedChangeList () (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/ChangesModel.cs:118)
Unity.Cloud.Collaborate.Models.Providers.Collab.OnChangeItemsChanged (UnityEditor.Collaboration.ChangeItem[] changes, System.Boolean isFiltered) (at Library/PackageCache/com.unity.collab-proxy@1.5.7/Editor/Collaborate/Models/Providers/Collab.cs:134)
UnityEditor.Collaboration.Collab.OnChangeItemsChanged (UnityEditor.Collaboration.ChangeItem[] changes, System.Boolean isFiltered) (at <25e9afc147634a5ca855ab83fab425dd>:0)
1行目のWeapon01.prefabは武器データを入れているプレハブです。
2行目以降を見てみると、Unityのプロジェクト共有機能「Collaborate」関係のエラーのようです。
検索してみるとこんなページが。
よくわかりませんが、Addressable Asset Systemみたいなものを独自に入れたおぼえはないので、Collaborate内で使われているのでしょう。
Weapon01.prefabやmetaデータを消しても変化なし。お手上げです。
使用しているUNITYは2020.3.14f1、Collaborateは1.5.7です。Collaborateの現時点での最新版は1.9.0ですが、アップデートするとPublishできなくなるバグがあったためアップデートしていません。
やはりgitHubなのか…。git は git で謎のバグで共有不能になったので使いたくないんですが…。