Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Duplicate identifier when update prefab

Discussion in 'Editor & General Support' started by immeasurability, Oct 14, 2022.

  1. immeasurability

    immeasurability

    Joined:
    Apr 22, 2014
    Posts:
    125
    Unity 2021.3.11f1
    When i update prefab get error message and broken prefab in File Project window.

    How fix this bug?
    this bug was in older version of editor too.

    Dont say me delete old prefab then create new!
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,520
    Did you merge in source control? Are you using source control?

    I would suggest duplicating or backing up the prefab and then go inside and delete half of the stuff in it, find if that was what the problem was. If it wasn't, delete the other half. Lather rinse repeat until you find it.

    https://en.wikipedia.org/wiki/Bisection_(software_engineering)
     
  3. immeasurability

    immeasurability

    Joined:
    Apr 22, 2014
    Posts:
    125
    1 - I have prefab object.
    2 - I move prefab object to the scene.
    3 - In the scene right click Prefab -> Unpack
    4 - Change elements in unpack object.
    5 - Drag this object to prefab file in project window.
    6 - Set Replace anyway.
    7 - ERROR
     
  4. immeasurability

    immeasurability

    Joined:
    Apr 22, 2014
    Posts:
    125
    In one prefab this SkinnedMeshRenderer link of Root bones.
    In other prefab problem in script with link to other Transform.
    In other prefab problem in Animator Link to animator avatar.
     
  5. immeasurability

    immeasurability

    Joined:
    Apr 22, 2014
    Posts:
    125
    How possible to fix this in Unity 2021??? I found 1000 about this problem but no one dont solve this problem!
    Maybe Unity industry need change programmers?