📅  最后修改于: 2022-03-11 14:49:02.950000             🧑  作者: Mango
public GameObject child;
public GameObject parent;
child.transform.SetParent(parent.transform);
child.transform.SetParent(parent.transform, false);