Unity报错 GameObject is already being activated or deactivated时间:2024-08-29 23:37:32unity 在OnDisable 方法里设置父节点会报这个错。 void OnDisable() { // transform.parent = oldParent; transform.SetParent(oldParent); }