Unidade Remova o pai
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);