官方文档推荐的是节点上放一个dragonBone.ArmatureDisplay组件,拖动资源给该组件创建龙骨。我想问的有没有这种使用方式?
http://forum.cocos.com/t/dragonbones/42212
this.factory = new dragonBones.CCFactory();
this._dragonBonesData = this._factory.parseDragonBonesData(dragonBonesJsonString);
this._factory.parseTextureAtlasData(atlasJsonString, imageFilePath);
var dragonBonesNode = this._factory.buildArmatureDisplay(armatureName);
这种方式已经接近egret的创建方式了
我知道可以通过loader加载资源动态创建龙骨,不过感觉层层嵌套的写法实在不好看。
好吧,其实我就是想问下有没有能同步创建龙骨的方法,异步的写着太麻烦了



