Search Unity

Prefabs disconnected

Discussion in 'Prefabs' started by MDADigital, May 4, 2021.

  1. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,200
    I think this broke when upgrading to nested prefabs, haven't touched the scenes since then. But now I. Hanged alot of prefabs and this message is displayed

    UyJwRhV.png

    Can i find all broken prefabs in scene?
     
  2. EvilGeorge

    EvilGeorge

    Joined:
    Jun 22, 2019
    Posts:
    3
    You could probably iterate over the prefabs in your scene(s) and search for prefabs that are disconnected using the
    Code (CSharp):
    1. PrefabUtility.IsDisconnectedFromPrefabAsset(yourAsset)
    call.
     
    MDADigital likes this.
  3. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,200
    Our older scenes are completely messed up :D I guess they will have to be broken. And fix little by little. Only problem is that I cant change prefabs and these will reflect changes.
     
unityunity