cocostudio ui编辑器导出的 .ExportJson文件 加载和显示方法:
auto uiLayer = UILayer::create();
auto ui = GUIReader::shareReader()->widgetFromJsonFile("loading.ExportJson");
uiLayer->addWidget(ui);
addChild(uiLayer);
cocostudio 场景编辑器导出的 json文件加载显示方法:
auto node = SceneReader::getInstance()->createNodeWithSceneFile("play_scene.json");
addChild(node);