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()
网友评论