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

Prefab abstraction

Discussion in 'General Discussion' started by BrainMelter, Aug 20, 2014.

  1. BrainMelter

    BrainMelter

    Joined:
    Nov 20, 2012
    Posts:
    572
    I was recently thinking about this talk from a couple of years ago:
    https://www.youtube.com/watch?feature=player_detailpage&v=24AY4fJ66xA#t=3487

    He talks about how prefabs can be abstracted similar to the way classes are abstracted. In other words, some properties are kept private to the implementation, whereas some properties are made public for usage in the scene.

    I heard they had a development version in the works, but it was delayed because they couldn't quite get the flow that people wanted.

    I was thinking of making a "light" version of this feature myself for the Asset Store. It should work, but it might not be quite as tightly integrated as what UT could make.

    So I have a couple of questions:

    1. Does such an asset already exist? I couldn't find one, but sometimes I can miss these things.
    2. Would people find this useful?
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,952
    I believe they said nested prefabs (with those types of features) are part of the uGUI. Should be available soon? ;)
     
  3. BrainMelter

    BrainMelter

    Joined:
    Nov 20, 2012
    Posts:
    572
    Hmmm, interesting. In that case, I should probably hold off until 4.6 before doing this. It's quite possible they'll release nested prefabs, but not abstracted prefabs. So we'll see.

    Edit: According to this, nested fabs won't be out with 4.6, though I'm not sure how reliable that source is.
     
    Last edited: Aug 20, 2014
  4. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,952
    I thought I remember one of the devs saying that the new GUI relied on nested prefabs. But I can't find the post, maybe just wishful thinking. Only real info I could find was this :
    http://forum.unity3d.com/threads/of...oming-in-unity-4-6.248524/page-3#post-1645011
    And here:
    http://forum.unity3d.com/threads/official-prefab-improvements.253427/page-2#post-1685321
    Basically what you said... not in 4.6. Some improvements in 5.0, but still a bit vague.

    Might be worth the effort for you to build one.
     
  5. BrainMelter

    BrainMelter

    Joined:
    Nov 20, 2012
    Posts:
    572
    Yeah, it just might be worth it then. What I'm making isn't designed to be all that big, so maybe I'll just build it and see what happens.
     
  6. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    Nope.
     
  7. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    Encapsulated, the term is encapsulated (not abstracted). Encapsulation means hiding the internals.
     
    GarBenjamin likes this.
  8. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,952
    Well, I also believe they said 4.6 ships with a tin of chocolate chip cookies... at least that part is true... right? ;)
     
  9. zDemonhunter99

    zDemonhunter99

    Joined:
    Apr 23, 2014
    Posts:
    478
    Yeah but Pro only.
     
  10. Pelajesh

    Pelajesh

    Joined:
    Dec 7, 2009
    Posts:
    363
    i think they said that nested prefabs will come soon after new gui, but not at the same time
     
  11. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,117
    It was said that the nested prefabs will be released in one of the 5.x updates
     
  12. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,613
    Abstracted means simplifying by discarding some properties or details, so I think it's valid to use either term in this context.