Greg Developer
Greg Developer

Reputation: 51

Cocos2d V3 How change z order of child? reorderChild is not available in V3

Cocos2D V3 does not contain CCNode reorderChild:z: How can I change the z order of a CCNode in V3? Any help much appreciated.

Upvotes: 2

Views: 1487

Answers (1)

CodeSmile
CodeSmile

Reputation: 64477

Like you always could and should have, by using the zOrder property.

You can also #import "CCNode_Private.h" to gain access to that method. But know that behind the scenes changing zOrder does nothing but call reorderChild:z: on your behalf anyway.

Upvotes: 2

Related Questions