creator 2.0.5
this.armatureDisplay = this.node.getComponent(dragonBones.ArmatureDisplay);
this.armature = this.armatureDisplay.armature();
无法获取armature
creator 2.0.5
this.armatureDisplay = this.node.getComponent(dragonBones.ArmatureDisplay);
this.armature = this.armatureDisplay.armature();
无法获取armature
报什么错?确认资源加载成功了吗?
没有报错,资源是直接拖拽到场景上,在其中一个场景可以获得,另一个场景,用同样的方式,同样的骨骼动画就不行了,最后获得armatureDisplay后,自己调用了一下私有方法armatureDisplay._init()后,再调用armature()就可以了。