【发布时间】:2014-05-26 23:12:18
【问题描述】:
我创建了一个精灵而不使用这样的图像:
auto sprite = Sprite::create();
sprite->addChile(label1);
sprite->addChile(sprite1);
sprite->addChile(sprite2);
sprite->addChile(label2);
毕竟我想得到最终的边界框大小。但是sprite->getBoundingBox().size 返回(0, 0)。为什么?以及如何获得最终尺寸?
【问题讨论】: