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))
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Some UXML Template Asset foldouts appear enabled when all fields inside are disabled
- URP Terrain Demo crash on burst_signal_handler after Generating lighting
- Project window button icons are poorly visible and their shades differ in Light theme
- Automatic LOD fails and SRP Batcher incompatibility occurs when using spline-based quad-topology meshes
- Editor crashes on D3D12GetInterface when repeatedly enabling and disabling 256 text components
Add comment