Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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:
    9,042
    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.
     
    SolarFalcon and zenGarden like this.
  3. Stephan-B

    Stephan-B

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

    Meltdown

    Joined:
    Oct 13, 2010
    Posts:
    5,816
    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,358
    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,243
    Please explain. Also are the parentheses silent?
     
  10. AndersMalmgren

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    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,243
    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,358
    :) 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
     
    SolarFalcon and FMark92 like this.
  13. xjjon

    xjjon

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

    FMark92

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

    AndersMalmgren

    Joined:
    Aug 31, 2014
    Posts:
    5,358
    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,243
     
    Rodolfo-Rubens and 3agle like this.
  18. Rodolfo-Rubens

    Rodolfo-Rubens

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