Found a problem with NodePool (CC 2.4.11), is not able to return back all nodes from ‘container’ node.
There is a demo below,
- Fill the list
- Press Recycle.
- Some items still there.
BUGPOOL.zip (910.1 KB)
Found a problem with NodePool (CC 2.4.11), is not able to return back all nodes from ‘container’ node.
There is a demo below,
BUGPOOL.zip (910.1 KB)
solved, well according event loop there is might be a delay with removing node , so solution is add delay before remove each node.
this.scrollView.content.children.forEach( node => {
this.scheduleOnce( () => {
this._nodePool.put(node);
}, cc.director.getDeltaTime())
});