cocos获取骨骼动画中所有动画名称
1 cc.Class({ 2 extends: cc.Component, 3 4 properties: { 5 ndDonghuaTemplate: cc.Node 6 }, 7 8 onLoad () { 9 var armatureDisplay = this.ndDonghuaTemplate.getComponent(dragonBones.ArmatureDisplay); 10 var animNameArr = armatureDisplay.getAnimationNames("armatureName"); 11 cc.log(animNameArr); 12 13 }, 14 15 });