Nested Prefabs

A prefab can be created by combining other smaller prefabs. These are called nested prefabs

We’ll use the barrel prefab from our previous example. Drop in 3 barrel prefabs on to the scene.

_images/nested_prefab_01.jpg

Hold down the Control key and select the three prefabs. We will be using this selection to create a new prefab

Note

Make sure you see a green outline around the selection. Green outline means prefab selection

_images/nested_prefab_02.jpg

Create a prefab with these three barrels

_images/A_create_prefab_menu.png _images/nested_prefab_03.jpg

Drop the newly created prefab on to the scene

_images/nested_prefab_04.jpg