the object of type 'Transform' has been destroyed but your are still trying to access it

来源:互联网 发布:如何参观清华大学知乎 编辑:程序博客网 时间:2024/04/25 20:03
在Hierarchy面板上的预制物体关联了销毁脚本,然后运行程序多次点击发射,提示“the object of type 'Transform' has been destroyed but your are still trying to access it”。需要去掉Hierarchy下的关联脚本,在Asserts下的prefabs里选择要销毁的对象并添加script组件。这是为什么呢?不太懂。
1 0