问答详情
源自:4-2 角色属性设置二

cocos2dx 加载的cocosstdio资源出错

ArmatureDataManager::getInstance()->addArmatureFileInfo(property->getDataName());
armature = Armature::create(property->getArmatureName());
armature->getAnimation()->play("default");	
this->addChild(armature);


这段加载完后运行,总是报错

http://img4.mukewang.com/5efc111f0001476818270830.jpg

http://img3.mukewang.com/5efc111f0001943a17830735.jpg

_pipelineDescriptor指针为空;

若把路径设为:ArmatureDataManager::getInstance()->addArmatureFileInfo("D:\\Source\\CatchGirl\\Resources\\res\\Export\\hero\\hero.ExportJson");

则不会报错,但也没显示出来,

cocos2dx4.0+cocos stdio 1.6


提问者:心雨至真 2020-07-01 12:32

个回答