this._urls = [“https://cos.ap-shanghai.myqcloud.com/images/1.png”,
“https://cos.ap-shanghai.myqcloud.com/images/2.png”
];
cc.loader.load(this._urls, function(completeCount, totalCount, res){}, function(err, texture){});
我想对sprite更换贴图,请问参数res是如何使用?
我这样使用,好像不行
let frame = new cc.SpriteFrame(res[0]);
sprite.spriteFrame = frame