Let's say I have have three models/prefabs:
Tank Body
Treads
Gun
Each one has a script attached, controlling its behavior depending on its type.
I want to be able to mix different body types, with different tread types, with different gun types. So, each one is a prefab. In my Hierarchy, I would create an empty gameobject, and assign these as children in this way:
Tank GameObject--->Treads ------>Tank Body -------->Gun
I have to parent these this way, because the treads turn the body, which turns the gun.
So this all works great, until I want to duplicate this for my scene . When I ctrl-D in the Hierarchy, or copy/paste, I only get this:
Tank GameObject ---->Treads
This is a bit of a pain if I want to put a lot of tanks on my scene...I have to recreate each one. I understand why this happens, but is there any way
- To have Unity not attempt to reestablish prefab links when copying, or
- Have Prefabs which can contain children more than one level deep?