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 });

 

posted @ 2018-10-23 09:45  饭桶大叔  阅读(600)  评论(0编辑  收藏  举报