# How to get the complete width of SKSpriteNode which has many child nodes

I have a Sprite node with many 6 child nodes. Each are placed one after another in X-axis. I want to know the complete with of the Sksprite node.

SKSpriteNode *array = [SKSpriteNode node];



array.size.width dosen't get me any size, so how should i get the complete width of array with child nodes..

If i add multiple sprites to NSMutalbleArray then how can i get the width of the complete array.

To get the complete bounding rectangle of a node and its child nodes you use the calculateAccumulatedFrame method. It's a member of SKNode.
CGRect layerSize = [_layer calculateAccumulatedFrame];