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

Bug Duplicate prefab instances

Discussion in 'Linux' started by kerede, Aug 26, 2016.

  1. kerede

    kerede

    Joined:
    Apr 3, 2013
    Posts:
    9
    Hi! We've been running into a bug with instantiating prefabs in the Editor. Often, a duplicate prefab appears in the hierarchy after saving and reloading the scene.

    Ubuntu 16.04.1 in VMWare
    Unity 5.3.4f1 and 5.4.0p1

    To reproduce:
    1) Create a simple prefab with a basic C# script attached
    2) Create a new scene and drag the prefab into the hierarchy
    3) Save and reload the scene
    4) There are now two instances of the prefab in the hierarchy

    Here's a video:


    Thank you!
     
  2. Tak

    Tak

    Unity Technologies

    Joined:
    Mar 8, 2010
    Posts:
    1,001
    Thanks for the report - we'll investigate.
     
  3. dmw3029

    dmw3029

    Joined:
    Aug 12, 2014
    Posts:
    1
    I would like to vote up this bug. I ran into it in Xubuntu 16.04 / Unity 5.4.1f1. I had my editor set up in columns, with the scene hierarchy in the far left, the #Scene tab in the middle, and the Project tab on the right. If I dragged a prefab from the Project tab across the 3D Scene window and to the Hierarchy, I would get two instances of the object.

    What's really brutal is that the "extra" GameObject doesn't show up in the scene hierarchy until you restart Unity (edit: or reload the scene, I guess)--it just persists invisibly, causing mischief.

    Fortunately if I instantiate a prefab by dragging directly into the 3D scene view, I don't observe the problem, so at least there's a workaround.
     
  4. aubreypuan

    aubreypuan

    Joined:
    Mar 30, 2017
    Posts:
    9
    Same thing is still happening today, on my mac book unity 2020.21.f1
     
    silvers_puppet likes this.
  5. payalzariya07

    payalzariya07

    Joined:
    Oct 5, 2018
    Posts:
    85
    I'm trying this thing but it's not happened.