I am following the “Getting Started” guide on Getting started with NetCode | Unity NetCode | 0.0.4-preview.0
So far, everything worked but the part where I am supposed to generated the code for the cube/unit, I am getting the following error:
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) (at Library/PackageCache/com.unity.netcode@0.0.4-preview.0/Editor/GhostAuthoringComponentEditor.cs:443)
Unity.NetCode.Editor.GhostAuthoringComponentEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.netcode@0.0.4-preview.0/Editor/GhostAuthoringComponentEditor.cs:272)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <cdd38c6cb7c446c6ac90945c7521da61>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Since there was a hint to TerrainAPI, I tried to just uninstall the “Terrain Tools” from the package manager. However, that didn’t help.
Is there a way I can find out where this error comes from?