I created layer in cocostudio, then loaded them like this
Node* node = CSLoader::createNode(“Layer.csb”);
Then I add this node to layer
addChild(node);
or like this
Vector<Node*> children = node->getChildren();
for(ssize_t i = 0; i < children.size(); ++i) { Node* child = children.at(i); child->removeFromParent(); addChild(child); }
all childred of this node have incorrect positions on screen. Were can be my mistake?