今天用cocosjs 加载了个 cocos studio生成的动画骨骼 但是报了个CCBone.js 269行的 r 未定义 ,请问有人出现过着问题么?
/**
* Updates display color
*/
updateColor: function () {
var display = this._displayManager.getDisplayRenderNode();
if (display != null) {
display.setColor(
cc.color(
this._displayedColor.r * this._tweenData.r / 255,
this._displayedColor.g * this._tweenData.g / 255,
this._displayedColor.b * this._tweenData.b / 255));
display.setOpacity(this._displayedOpacity * this._tweenData.a / 255);
}
},
```
报错的地方就是 倒数第四行的 this._displayedColor.r ,我看了下 _displayedColor都没有定义 不知道是做什么用的。
onEnter:function(){
this._super();
var size = cc.winSize;
ccs.armatureDataManager.addArmatureFileInfo(res.Player0_png,res.Player0_plist,res.Player_ExportJson);
var armature = new ccs.Armature("Player");
armature.x = size.width/2;
armature.y = size.height /2;
armature.getAnimation().play("Walk",-1,1);
this.addChild(armature);
}
```
这是我加载的时候的代码 ,请问有大神出现过这个问题么?