Unity

Can't destroy RectTransform comp

2021-05-26  本文已影响0人  kbcoder
Can't destroy RectTransform component of 'xxxx'. If you want to destroy the game object, please call 'Destroy' on the game object instead. Destroying the RectTransform component is not allowed.

unity 编辑器退出的时候如果有释放东西的操作,这个时候如果使用Destroy()会报这个错,改用DestroyImmediate()

上一篇 下一篇

猜你喜欢

热点阅读