Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

关于Armature::create()的问题

$
0
0

@1339942935 写道:

ArmatureDataManager::getInstance()->addArmatureFileInfo("hero/hero.ExportJson");

Armature* arm =Armature::create("hero");//编译报错

arm->getAnimation()->play("default");

arm->setPosition(Point(visibleSize.width*0.5,visibleSize.height*0.5));

this->addChild(arm);

PS:第二行代码编译报错,原因应该是
AnimationData *animationData = armatureDataManager->getAnimationData(name);
其中animationData=NULL;

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>