Cocostdio 场景编辑器 导入后只要获取UI控件 就白屏 马上停止工作 怎么回事啊 2dx 3.0 3.2 都这样
Node* node = SceneReader::getInstance()->createNodeWithSceneFile(“NewScene.json”);
this->addChild(node, 1);
ComRender* render = (ComRender*)node->getChildByTag(10005)->getComponent(“GUIComponent”);
Widget* getbutton = (Widget*)render->getNode();
Button* button = (Button*)getbutton->getChildByName(“Button”);
button->addTouchEventListener(this, toucheventselector(NewGame::buttonCallBack));
只留前两句 就正常 请问 是怎么回事 ?