由cocostudio 导出的资源文件 和者是发布到vs工程文件的读取方式有点区别
//Node* node = CSLoader::getInstance()->createNodeWithFlatBuffersForSimulator("res/MainScene.csd"); //ActionTimeline* action = cocostudio::timeline::ActionTimelineCache::getInstance()->createActionWithFlatBuffersForSimulator("res/MainScene.csd"); Node* node = CSLoader::createNode("res/texi_ani.csb"); ActionTimeline* action = CSLoader::createTimeline("res/texi_ani.csb"); node->setPosition(ccp(0,0)); action->gotoFrameAndPlay(0); node->runAction(action); addChild(node);原文链接:https://www.f2er.com/cocos2dx/340686.html