Search Issue Tracker
Fixed in 0.3.0-preview.1
Votes
0
Found in [Package]
early preview
Issue ID
1259823
Regression
No
[NetCode] Generating GhostComponent to Terrain causes error
[NetCode] Generating GhostComponent to Terrain causes error
To reproduce:
1. Open project attached, New Scene.
2. Open Terrain and press "Generate Code".
3. Error fails:
ArgumentException: An item with the same key has already been added. Key: UnityEditor.Experimental.TerrainAPI.PaintHeightTool
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <437ba245d8404784b9fbab9b439ac908>:0)
Unity.NetCode.Editor.GhostAuthoringComponentEditor.GenerateGhost (Unity.NetCode.GhostAuthoringComponent ghostInfo, System.Boolean testOnly) (at Library/PackageCache/com.unity.netcode@0.2.0-preview.5/Editor/GhostAuthoringComponentEditor.cs:453)
Unity.NetCode.Editor.GhostAuthoringComponentEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.netcode@0.2.0-preview.5/Editor/GhostAuthoringComponentEditor.cs:282)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass58_0.<CreateIMGUIInspectorFromEditor>b__0 () (at /Users/builduser/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:529)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:197)
This is reported from:
https://github.com/Unity-Technologies/multiplayer/issues/70
Fixable by changing GhostAuthoringComponentEditor.GenerateGhost method at line 442 to:
if (compType.Type != null && !typeLookup.ContainsKey(compType.Type.FullName))
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Character spacing value is not applied when using a specific font asset
- [Android][IL2CPP] Player crashes on __memcpy_aarch64_simd+276 when invoking native code via a plugin on some ARM64 Android devices
- [Android]Resources fail to load when the AAB build contains a large Addressables Bundle
- System.UriFormatException is thrown when building the Localization "Preloading Screen Example" in WebGL
- Unity is loading internal version of SharpZipLib instead of local version
shubhamswaraj2021
Aug 19, 2020 05:35
good one <a href="https://www.lyricsauto.com">lyricsauto</a>