Today - 9 October 2017
Unity still doesn’t have Nested Prefabs functionality.
8 years ago was created the feature request with 1611 upvotes, still nothing.
Unity team does everything for us, for clients. But now we need Nester Prefabs more than other stuff. It’s a core of development games.
If you are like me, and you need Nested Prefabs, let’s make a public resonance, let’s post here the message
#weNeedNestedPrefabs
Share it everywhere for joining people to the hashtag!
I heart many times that Unity doesn’t sure about the feature, about how it must look like.
There is what we want:
Required (Nesting):
Example: [Prefab “A” contains prefab “B” inside]
- prefab can contain another prefab inside, like a link to another prefab
Behaviour:
- user changes prefab “B” —> these changes come to prefab “A” as well because “A” has just a link to prefab “B”
It gives us memory benefits because prefab “A” became lightweight
- prefab can override fields of nested prefabs
Behaviour:
- user changes prefab “B” inside prefab “A” —> prefab “A” override these changes, even the same field will be changed in prefab “B” prefab “A” still override the field. Until user deletes the overriding.
Optional (Inheritance):
Example: [Prefabs “Enemy1”, “Enemy2”, “Enemy3”, “EnemyBase” all of them have field “shoutRange”]
- changing fields in “base” prefabs —> applies changes to all children prefabs
Behaviour:
change shoutRange in “EnemyBase” prefab it automatically changes shoutRange field in all children prefabs “Enemy1”, “Enemy2”, “Enemy3”. Still, child prefab doesn’t override the field.
----------------------------------------------------------------------
Update 19-Jan-2018
Finally, we detected the feature in Development section in Unity roadmap.
It called “Improved Prefab Workflows”
Good job guys, we did it!
Thanks for your support and thanks Unity team for hearing us!
Unity team, please take care about the feature, be in touch with the community. Because it’s one of the most valuable and powerful features in game development!
----------------------------------------------------------------------
Update 20-Jun-2018
First look on new prefabs is awesome!
I just downloaded Unity 2018.2.x - beta9
The size of the prefab which exists of nested prefabs is small. It means that prefabs really links to each other, it’s good.
But I found a problem if do changes in prefab hierarchy - EXAMPLE