The object of type 'Transform' has been destroyed but you are still trying to access it.

来源:3-9 动态生成和销毁物体-Unity3D角色控制

qq_北极之光_0

2021-05-20 21:23

destory 报错,要怎么弄

MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.

Your script should either check if it is null or you should not destroy the object.


写回答 关注

1回答

  • 慕梦前来
    2021-10-28 19:44:05

    这个是转换的时候二个类型不一样吧

Unity3D快速入门

本课程为Unity 3D入门教程,快速学会用Unity开发游戏

145916 学习 · 326 问题

查看课程

相似问题