Unidad eliminar a los padres
transform.parent = null;
Greentext
transform.parent = null;
transform.SetParent(parentTransform, true);
transform.SetParent(null, true);
Destroy(transform.parent.gameObject);
transform.SetParent(parentTransform, true);
transform.SetParent(null, true);