使用的cocos studio1.6、cocos2dx 3.2,采用的例子http://cn.cocos2d-x.org/tutorial/show?id=1674
UI编辑器显示是这样:
(不知道怎么插入本地截图)
在cocos2dx中运行位置全乱了
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !Layer::init() )
{
return false;
}
ui::Widget* pNode = cocostudio::GUIReader::getInstance()->widgetFromJsonFile(“UI/Login/DemoLogin.json”);
this->addChild(pNode);
return true;
}
有人知道是什么问题吗