prefab question

I have a model of a gun. I’ve brought it into unity and added some components and then made it a prefab.

There are scenarios in which I only want to instantiate one of it’s children.

Is it possible to instantiate just one child of a prefab or will i need to make a whole bunch of separate prefabs for each piece?

Screen shot showing the prefab with it’s children expanded: http://www.gordonjennings.net/temp/C14prefab.PNG

I suppose you could instantiate the whole thing, then turn off or delete the parts you don’t need. But you might also be able to create a new object using AddComponent(Mesh) and so forth to build an object from mesh and materials. Not really clean either way. You could also write an Editor script which could dissect your models and build all those sub-prefabs for you.

Vote for nested prefabs at feedback.unity3d.com