Is there any way to set z-index or depth value for a node ?

Is there any way to set z-index for a node without changing the hierarchy?

Thing is that I have a nodeA and during the game I'm toggling its parent between two nodes (let's say nodeB and nodeC). After making nodeC parent of nodeA, I can't see nodeA sometimes, because it's drawn before nodeB.

possible solution: I can make a wrapper node and I can change the order of nodes when I toggle the parent.

But if there is a way to set z-index or depth of a node, it would be more easy.
Has invited:

lijh

Favor from:

You can set the depth of a child node by setChildIndex method.
 http://docs.qiciengine.com/api ... .html

To reply to a question, please Login or registered