Unity SetParent

public GameObject child;    
public GameObject parent;

child.transform.SetParent(parent.transform);

child.transform.SetParent(parent.transform, false);
Tartaud