问答详情
源自:3-9 动态生成和销毁物体-Unity3D角色控制

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

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.


提问者:qq_北极之光_0 2021-05-20 21:23

个回答

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

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