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

Prefabs disconnected

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

  1. MDADigital

    MDADigital

    Joined:
    Apr 18, 2020
    Posts:
    2,198
    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,198
    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.