Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

I need help with the Lego Microgame

Discussion in 'Editor & General Support' started by Rowanlikesdonuts, Nov 9, 2020.

  1. Rowanlikesdonuts

    Rowanlikesdonuts

    Joined:
    Jul 31, 2020
    Posts:
    15
    I got 3 errors when I build the game. I changed no scripts.


    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <d7545a46516941d4b2f2dec578cd41ee>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <d7545a46516941d4b2f2dec578cd41ee>:0
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

    ArgumentException: An item with the same key has already been added. Key: d4f6cc0d-d1c5-4e27-acc6-d3fbceab160e
    System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <fb001e01371b4adca20013e0ac763896>:0)
    System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <fb001e01371b4adca20013e0ac763896>:0)
    SceneObjectGUIDManager.Register (SceneObjectGUIDComponent component) (at Library/PackageCache/com.unity.learn.iet-framework@1.1.0/Framework/Interactive Tutorials/Scripts/SceneObjectGUIDManager.cs:34)
    SceneObjectGUIDComponent.Register () (at Library/PackageCache/com.unity.learn.iet-framework@1.1.0/Framework/Interactive Tutorials/Scripts/SceneObjectGUIDComponent.cs:42)
    SceneObjectGUIDComponent.Awake () (at Library/PackageCache/com.unity.learn.iet-framework@1.1.0/Framework/Interactive Tutorials/Scripts/SceneObjectGUIDComponent.cs:35)
    UnityEditor.SceneManagement.EditorSceneManager:OpenScene(String)
    LEGOModelImporter.ProcessHelper:processAssets(Func`2) (at C:/Users/Rowan/AppData/Local/Temp/ff3eebb591ab8544c8049ae310786a8f/Library/PackageCache/com.unity.lego.modelimporter@3.0.2/Editor/ProcessBuild.cs:115)

    ArgumentException: An item with the same key has already been added. Key: d4f6cc0d-d1c5-4e27-acc6-d3fbceab160e
    System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <fb001e01371b4adca20013e0ac763896>:0)
    System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <fb001e01371b4adca20013e0ac763896>:0)
    SceneObjectGUIDManager.Register (SceneObjectGUIDComponent component) (at Library/PackageCache/com.unity.learn.iet-framework@1.1.0/Framework/Interactive Tutorials/Scripts/SceneObjectGUIDManager.cs:34)
    SceneObjectGUIDComponent.Register () (at Library/PackageCache/com.unity.learn.iet-framework@1.1.0/Framework/Interactive Tutorials/Scripts/SceneObjectGUIDComponent.cs:42)
    SceneObjectGUIDComponent.OnValidate () (at Library/PackageCache/com.unity.learn.iet-framework@1.1.0/Framework/Interactive Tutorials/Scripts/SceneObjectGUIDComponent.cs:49)
    UnityEditor.SceneManagement.EditorSceneManager:OpenScene(String)
    LEGOModelImporter.ProcessHelper:processAssets(Func`2) (at C:/Users/Rowan/AppData/Local/Temp/ff3eebb591ab8544c8049ae310786a8f/Library/PackageCache/com.unity.lego.modelimporter@3.0.2/Editor/ProcessBuild.cs:115)
    LEGOModelImporter.PreProcessBuild:OnPreprocessBuild(BuildReport) (at C:/Users/Rowan/AppData/Local/Temp/ff3eebb591ab8544c8049ae310786a8f/Library/PackageCache/com.unity.lego.modelimporter@3.0.2/Editor/ProcessBuild.cs:25)
    UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()

    I've worked very hard on this. Please help!
     
  2. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    Hi @Rowanlikesdonuts,

    Is the error happening even when you try to build the original project template unchanged?
     
  3. Rowanlikesdonuts

    Rowanlikesdonuts

    Joined:
    Jul 31, 2020
    Posts:
    15
    No. It doesn't.
     
  4. Rowanlikesdonuts

    Rowanlikesdonuts

    Joined:
    Jul 31, 2020
    Posts:
    15
    Hello, thank you for your time but I have fixed it. I did something wrong when changing my character.
     
    DiegoDePalacio likes this.
  5. DiegoDePalacio

    DiegoDePalacio

    Unity Technologies

    Joined:
    Oct 28, 2009
    Posts:
    506
    Glad that you found the solution!