Prefab abstraction

I was recently thinking about this talk from a couple of years ago:

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?

I believe they said nested prefabs (with those types of features) are part of the uGUI. Should be available soon? :wink:

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.

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/official-new-ui-system-coming-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.

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.

Nope.

Encapsulated, the term is encapsulated (not abstracted). Encapsulation means hiding the internals.

1 Like

Well, I also believe they said 4.6 ships with a tin of chocolate chip cookies… at least that part is true… right? :wink:

Yeah but Pro only.

i think they said that nested prefabs will come soon after new gui, but not at the same time

It was said that the nested prefabs will be released in one of the 5.x updates

Abstracted means simplifying by discarding some properties or details, so I think it’s valid to use either term in this context.