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

ArgumentException on Add Component inside of Prefab

Discussion in 'Editor & General Support' started by MrConkin, Feb 12, 2019.

  1. MrConkin

    MrConkin

    Joined:
    Feb 11, 2013
    Posts:
    20
    I recently updated to 2018.3.4f1 and am encountering an issue where attempting to add a component inside of a prefab throws an argument exception. Any attempt to then add a component to any game object outside of the prefab also begins throwing the same exception until I restart Unity. Is this a known issue?

    "ArgumentException: An element with the same key already exists in the dictionary." (details below)

    https://pastebin.com/embed_js/Hngi00qQ
     
    Avinash-pdy likes this.
  2. Avinash-pdy

    Avinash-pdy

    Joined:
    Mar 4, 2013
    Posts:
    27
    I am getting the same exception on Unity 2018.4.0f1. After opening a prefab, i am not able to add a component to any game object. I get below exception

     
  3. Avinash-pdy

    Avinash-pdy

    Joined:
    Mar 4, 2013
    Posts:
    27
    I found a workaround for this problem. Quit Unity and Visual Studio. Restart the project. It started working for me. Hope it helps