How can I change the Z-order of some SpriteBatchNode childs? SetLocalZOrder works not on SpriteBatchNode

I tried it with: sprite->SetLocalZOrder(z);
But it is not working on SpriteBatchNode.

Using the same command (sprite->SetLocalZOrder(z)) on an Sprites which be childs of a Layer it works correct.

It can not work on SpriteBatchNode. Because SpriteBatchNode is a manager node, many Sprites will share the same SpriteBatchNode.

Ok. Thanks.

But I can change the ZOrder of a SpriteBatchNode child using: batch->reorderChild(sprite, z);

I have this info from the cpp-test => “Node: Sprite” => “Testing SpriteBatchNode Z order” example.

So what is the different between: reorderChild and SetLocalZOrder?

I got the same question…
what is the different between: reorderChild and SetLocalZOrder?