试着播放一个cocos studio 的 动画,
ccs.armatureDataManager.getInstance().addArmatureFileInfo(“res/chilun/chilun.ExportJson”);
var armature = ccs.Armature.create(“demo”);
this.addChild(armature);
报错是说 ccs not defined。。
土问下应该怎样把相关dependency 给加上
试着播放一个cocos studio 的 动画,
ccs.armatureDataManager.getInstance().addArmatureFileInfo(“res/chilun/chilun.ExportJson”);
var armature = ccs.Armature.create(“demo”);
this.addChild(armature);
报错是说 ccs not defined。。
土问下应该怎样把相关dependency 给加上
可能是你project.json里面没有加入cocos studio的模块,请检查下。
模块的定义是在moduleConfig.json里,cocostudio模块。
果然是这样
,版主好厉害