美文网首页Unity
Can't destroy RectTransform comp

Can't destroy RectTransform comp

作者: kbcoder | 来源:发表于2021-05-26 11:53 被阅读0次
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()

相关文章

网友评论

    本文标题:Can't destroy RectTransform comp

    本文链接:https://www.haomeiwen.com/subject/szkksltx.html