gameObject.transform.SetParent to empty game object code example Example: set parent of gameobject unity child.transform.SetParent(newParent);