I can create the empty Prefab no problem.
But how do I create the GameObjects that become the children??
If I use the menu GameObject > Create empty GameObject it does not create it in the prefab, it creates it in the scene view.
So for example if you look at the Standard Asset First Person Controller prefab it has 2 child GameObjects, one called Graphics and one called Main Camera. If I want to extend the functionality and add more GameObjects of my choice how do I do this??
Thanks.
In the hierarchy, there is a bug or something, that only shows the first layer of children in a prefab. If you have the following:
myPrefab
firstLayerChild
SecondLayerChild
All of this will show in the scene, but only the ‘firstLayerChild’ will show in the hierarchy. You will find that, if you drag the prefab from the hierarchy to your scene, you will see all children!
Never mind I figured it out.
The GameObject Hierarchy is created only from the scene view, not the project view…
Would be nice if this was made more clear in the documentation for prefabs.
Thanks killer.
My concern was how to actually build a nested GameObject or to add a GameObject to an existing hierarchy.
It wasn’t made clear that this was only doable from the scene view / hierarchy pane and not the project pane.
but i see your point… that’s not a fun glitch either.