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. We are updating our Terms of Service for all Unity subscription plans, effective October 13, 2022, to create a more streamlined, user-friendly set of terms. Please review them here: unity.com/legal/terms-of-service.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
  4. Join us on Thursday, September 29, for a day with Unity's SRP teams here on the forum or on Reddit, and discuss topics around URP, HDRP, and the Scriptable Render Pipeline in general.
    Dismiss Notice

What's a nested prefab?.

Discussion in 'General Discussion' started by SVGK, Mar 17, 2014.

  1. SVGK

    SVGK

    Joined:
    Jan 25, 2014
    Posts:
    99
    i see people ask about when it's coming, but don't know what it is, or why it would be useful when/if unity supports it.
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,639
    Currently if you place a prefab inside another prefab, the nested prefab is no longer linked to original.

    There are tons of practical uses, a good example would be UI. Say you create a button and make it prefab. Now you create a bunch of menus/windows/hud/etc that use that button. If you prefab those elements, you would have to manually update that button in each one. If you could nested prefabs, you could just update the original prefab and the rest will automatically have those changes.
     
    MaximumTre and zenGarden like this.
  3. Stephan-B

    Stephan-B

    Unity Technologies

    Joined:
    Feb 23, 2011
    Posts:
    2,269
    MaximumTre and azurstreams like this.
  4. Meltdown

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,736
    A baby flappy bird prefab in it's nest.
     
  5. squared55

    squared55

    Joined:
    Aug 28, 2012
    Posts:
    1,818
    Let's say you have multiple prefabed characters, each with the same item as a child of the character. Under the current system you would have to update each character's prefab individually if you wanted to change the item's stats. With nested prefabs you could bury an item prefab in the character's hierarchy and then only have to update the stats once to apply it to all characters.
     
  6. PrefabEvolution

    PrefabEvolution

    Joined:
    Mar 27, 2014
    Posts:
    225
  7. hackintosh12945

    hackintosh12945

    Joined:
    Apr 3, 2017
    Posts:
    5
    Four years later....finally it is here.
     
    Ignacii and AndersMalmgren like this.
  8. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,363
    We have a saying here in Sweden, Dont say hi (To your friend on the other side of the road) until you have crossed the road
     
    Ignacii, zombiegorilla and chingwa like this.
  9. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,244
    Please explain. Also are the parentheses silent?
     
  10. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,363
    The parenthesis is just to explain the idiom :D So it basicly goes, "Dont say hello before you have crossed the road" I guess you can get runover or something on the way over :D
     
    FMark92 and Lu4e like this.
  11. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,244
    Oooh, I see.
    We have something similar, I suppose.
    "Don't judge a day before it's over."
     
    Ignacii and AndersMalmgren like this.
  12. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,363
    :) I also found this one from the english language, don't count your chickens before they're hatched :D
    Or this one, "Dont let your design rely on nested prefabs before UT gets their ass out" :D
     
    MaximumTre and FMark92 like this.
  13. xjjon

    xjjon

    Joined:
    Apr 15, 2016
    Posts:
    552
    The wait is over!
     
  14. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,244
    You wish. Autumn 2018.
     
  15. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,363
    We have another saying, "Sit down in the boat". It's used when people are over hyped for something

    edit: Its hard not being over hyped, I see lots of workflows that will be so much easier with this
     
    Last edited: Apr 17, 2018
  16. 3agle

    3agle

    Joined:
    Jul 9, 2012
    Posts:
    508
    Is there a source on the nested prefab news?
     
  17. FMark92

    FMark92

    Joined:
    May 18, 2017
    Posts:
    1,244
     
    Rodolfo-Rubens and 3agle like this.
  18. Rodolfo-Rubens

    Rodolfo-Rubens

    Joined:
    Nov 17, 2012
    Posts:
    1,191
    This Prefab Mode is also very nice!!
     
unityunity