说一说最近遇到的坑

The object of type 'Object' has been destroyed but you are still trying

对象被销毁依然尝试访问。

但是物体和脚本都在,排查了很久发现是因为自己在跳转场景时没有注销事件,在OnDestroy中注销改事件之后就正常工作了。

猜你喜欢

转载自blog.csdn.net/qq_39426843/article/details/79138122