版本:quick-cocos2dx-2.2.6
local rect = node:getCascadeBoundingBox()
printInfo(rect.width) ------ not nil
local rect = CCRect(0, 0, 10, 10)
printInfo(rect.width) ------ nil
printInfo(rect.size.width) ------ not nil
为什么上面那个rect.width不为空呢?
版本:quick-cocos2dx-2.2.6
local rect = node:getCascadeBoundingBox()
printInfo(rect.width) ------ not nil
local rect = CCRect(0, 0, 10, 10)
printInfo(rect.width) ------ nil
printInfo(rect.size.width) ------ not nil
为什么上面那个rect.width不为空呢?