node.destroy(),Node.destroyAllChildren并不会立即销毁,实际销毁操作会延迟到当前帧渲染前执行。

这段话可能不明白,但是在Node.destroyAllChildren()后,如果认为该节点的子节点都销毁了,直接跟之后的代码,那肯定是有问题的。

相关文章:

  • 2021-08-24
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2021-12-25
  • 2021-08-22
  • 2021-10-01
  • 2021-06-23
  • 2021-05-15
  • 2021-12-26
相关资源
相似解决方案