最近遇到这样一个问题,定义了一个ImageButton后,想对按钮进行下旋转,结果setRotation(-90f),不起作用.后来在官网上找到了原因 关于UI控件的旋转 缩放官网上有这样一段话(链接:http://code.google.com/p/libgdx/wiki/scene2dui): Flushing for each group would severely limit performance, so most scene2d.ui groups have transform s
依据名字查找控件 须要包括的头文件及名字空间: #include "cocostudio/CocoStudio.h" #include "ui/CocosGUI.h" using namespace cocos2d::ui; using namespace cocostudio; 注:project中须要附加包括的头文件文件夹:$(EngineRoot)cocos\editor-support.由于cocostudio在此文件夹下. 获取UI控件的方法例如以下: m