I’m simply cloning an object that has a hierarchy (the child object is an animated mesh from FBX import), and though the documentation clearly states that the full hierarchy of instantiated objects is duplicated, this is not happening. The cloned object has no children.
// initialization
GameObject butterflySource;
butterflySource = GameObject.Find("butterfly");
// cloning
GameObject butterflyObject = (GameObject)
UnityEngine.Object.Instantiate(butterflySource, new Vector3(x, y, z),
butterflySource.transform.rotation);
Does anyone have any ideas why an object created from Object.Instantiate wouldn’t have its hierarchy duplicated?