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

Linked Prefab Bug

Discussion in 'Editor & General Support' started by Zodd, Aug 8, 2013.

  1. Zodd

    Zodd

    Joined:
    Mar 28, 2013
    Posts:
    31
    I believe I've found a very annoying bug in 4.2. The issue that I'm having is that two prefabs have become linked indefinitely with each other, so if I change the texture on one, it changes on the other. I've tried deleting one of the prefabs > Then dragging the remaining prefab into the scene > Breaking the prefab from it > Editing the game object to the altered version > Creating a new prefab and naming it after the deleted prefab > And then updating the new prefab with the edited game object. Every time I do this, both game objects end up the same.

    In another experiment, I put the one prefab in the scene > Broke it's connection > then added another of the same prefab to the scene > and then changed the texture on EITHER object in the scene, it changes the texture of both of them at the same time O_O

    The same thing occurs even if both prefab instances are broken, and also if I change the texture of the prefab in the inspector.

    I think what I did to cause this was drag one prefab into the scene, create a new prefab, and then drag the object from the scene onto the new prefab without breaking or altering it. All I know is something is seriously wrong, and I think I might just have to create the duplicate prefab from scratch instead of trying to clone it in some way :(
     
  2. porglezomp

    porglezomp

    Joined:
    Aug 21, 2012
    Posts:
    40
    If they still have the same material then the changing texture isn't a problem of the prefab, it's just that the texture is linked to the material. If you want them to have different textures, then you'll need to use different materials on each object.