The idea is that I have a parent Node as a container with a bunch of Sprites as children, and that I can have the Node's width include the width of the children, since I'm assuming the size would encompass its children, but it doesn't look like it.
I've got a subclass of Node, with several sprites added to it via addChild, but the content size returned by subclassofNode()->getContentSize().width is always 0.
Is it possible to get an accurate size of a Node?
Aucun commentaire:
Enregistrer un commentaire