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))
Comments (1)
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
- Undoing Animator Parameter name change breaks references to it
- Crash on BV4_OverlapBoxAll when moving in play mode
- Custom mesh water surface normal map fades out when Y Position increases
- Sprite renderer does not issue draw calls correctly when using SRP Batcher
- [Android] Flickering artifacts when using "ScriptableRenderer.EnqueuePass(RenderPassEvent.BeforeRenderingPostProcessing)" multiple times
shubhamswaraj2021
Aug 19, 2020 05:35
good one <a href="https://www.lyricsauto.com">lyricsauto</a>