(2018.3) Add Component not working
Hi, when after updating to 2018.3 i can no long add any components......
So after removing and reinstalling PUN its working again. delete this.
I get this errror:
ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)
UnityEditor.AdvancedDropdown.AddComponentDataSource.GetMenuDictionary () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AddComponent/AddComponentDataSource.cs:70)
UnityEditor.AdvancedDropdown.AddComponentDataSource.RebuildTree () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AddComponent/AddComponentDataSource.cs:17)
UnityEditor.AdvancedDropdown.AddComponentDataSource.FetchData () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AddComponent/AddComponentDataSource.cs:10)
UnityEditor.AdvancedDropdown.AdvancedDropdownDataSource.ReloadData () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AdvancedDropdown/AdvancedDropdownDataSource.cs:22)
So after removing and reinstalling PUN its working again. delete this.
I get this errror:
ArgumentException: An element with the same key already exists in the dictionary.
System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:404)
UnityEditor.AdvancedDropdown.AddComponentDataSource.GetMenuDictionary () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AddComponent/AddComponentDataSource.cs:70)
UnityEditor.AdvancedDropdown.AddComponentDataSource.RebuildTree () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AddComponent/AddComponentDataSource.cs:17)
UnityEditor.AdvancedDropdown.AddComponentDataSource.FetchData () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AddComponent/AddComponentDataSource.cs:10)
UnityEditor.AdvancedDropdown.AdvancedDropdownDataSource.ReloadData () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/AdvancedDropdown/AdvancedDropdownDataSource.cs:22)
0
Comments
-
Hi @aholla,
Thank you for choosing Photon!
There are already two discussions similar to this one:
1. Photon View - incorrect name
2. Warning: "Duplicate Shortcut Identifier found: Component/Photon Networking/Photon View. Ignoring"
Current solution0 -
I'm getting the same error with unity 2018.3 and the other solutions didn't fix it0
-
Hello! I'm having the same issue with Unity 2018.3.8. Upgraded from Unity 5.4.6 (skipped a bunch of versions but that's just because Unity's Physics was too wonky for my game after 5.4 and before 2018.3, but that's another story). I'm on an older version of PUN v 1.86.1. So that might be the problem. I'll see if the issue persists after updating to the latest version of PUN.
Drag & dropping scripts or adding components via the Component menu works so it's not the end of the world for now.0 -
Late reply, because we just came across this again: The issue happens in 2018.3 and up. The AddComponentMenu for the PhotonView class is not allowed to include a keyboard-shortcut. It's fixed in PUN Classic v1.95.1 and PUN v2.6.0