lua中 removeAllChildrenWithCleanup 是不是用不了

:2: 以前不用lua的时候各种使用removeAllChildrenWithCleanup

但是现在用lua发现,removeAllChildrenWithCleanup必定错误
还有 removeFromParentWithCleanup 也是必定错误

:8: 这是怎么回事 lua必定要使用removeAllChildren,removeFromParent 这样的函数吗

WithCleanup后缀的函数使用必定错误:6:

直接使用removeAllChildren()

原因是绑定的时候改了名字
tolua_function(tolua_S,“removeAllChildren”,lua_cocos2dx_Node_removeAllChildrenWithCleanup);

我直接使用 removeFromParent()就不会出现问题 你的那个应该有个参数true吧