unity 在OnDisable 方法里设置父节点会报这个错。
void OnDisable() { // transform.parent = oldParent; transform.SetParent(oldParent); }