Recursive Prefabs (Altered Prefab As Prefab)

Let’s say I have a prefab X. I instantiate it three times, making objects A, B, and C. I want to store these as prefabs so they’re easy to instantiate at runtime, but I want to not lose their link to X so I can still change X and have it alter A, B, and C. Is this possible in any way?

1 Like

I think you mean nested prefabs. Maybe this helps you.

1 Like

No, not nested prefabs (though that would be nice). Here’s a better example:

I have a prefab “Control Button” which specifies the general layout of the button (size, animation, image, text style), and that is a prefab. I instantiate that button twice, and in one I make the text “Save and Quit” and in the other “Quit without Saving”, and those also are prefabs. I then instantiate the “Save and Quit” and “Quit without Saving” prefabs in a bunch of different places to all do the same thing, but I want those two prefabs still linked to the “Control Button” prefab so I can change the look of the “Control Button” without having to change both of the “Save and Quit” and “Quit without Saving” prefabs manually too. So it’s more like inheritance than hierarchy.

1 Like