新装的cocostudio for mac 试着导出一个简单的工程到cocos2d-x 3.x的工程中,编译没有问题,但是运行失败?不知道什么时候3.x能用cocostudio for mac生成的资源?
3.x需要最新的版本,另外,加载方式应该也已经改为timeline类型的加载了。
Layout* equipe_root = dynamic_cast<Layout*>(cocostudio::timeline::NodeReader::getInstance()->createNode(“cocosgui/gui_examples/equip_1/equip_1.json”));
还是不行啊,我的就是最新版,而且也用了你的方法 _layout = dynamic_cast<Layout*>(cocostudio::timeline::NodeReader::getInstance()->createNode(“xxxx.json”)); 可惜返回NULL啊
CreateNode 生成的是一个CCNode,不是Layout,用cocostudio for mac 需要用户自己添加一个Panel,默认的根节点是Node