cc.textureCache.addImage(url, function(texture){
if (texture instanceof cc.Texture2D) {
this.setTexture(texture);
this.setTextureRect(cc.rect(0, 0, texture.width, texture.height), false, texture.getContentSize());
} else {
console.log("DownloadImage Error");
console.log(texture);
}
}, this);
網頁版
我是用這樣的方式來下載圖檔,之前還正常,但升級到3.13以後,url都會載入錯誤,請問有方法可以解嗎