技术探讨
removeAllChildren()以及遍历子节点进行destroy()在使用场景上有什么区别嘛?
removeAllChilren()不会调用上面的Component的onDestroy(),而用destroy()时才会调用onDestroy()
destroy()并不是每个子节点都有的
技术探讨
removeAllChildren()以及遍历子节点进行destroy()在使用场景上有什么区别嘛?
removeAllChilren()不会调用上面的Component的onDestroy(),而用destroy()时才会调用onDestroy()
destroy()并不是每个子节点都有的