加载微信头像的时候 有几率报错Error 4930 (Error 4930, please go to https://github.com/cocoscreator/engine/blob/develop/EngineErrorMap.md#4930 to see details. Arguments:
https://thirdwx.glogo.cn/mmopen/vi 32/7z2buiaMl1hGVbRP4XK2nzJ9xkU1QJ10AF9FK8LT2GKIHTY8YEQCFSVfkoYDabxvSOXfdUS1f6lvONxDfah6APicTCB3Luf30zC2nF2f33Ge8/132 )
下边是我的代码 请问大家问题出在哪
//assetManager.loadRemote(url, {ext: ‘.jpg’}, function (err, imageAsset) {
const spriteFrame = new SpriteFrame();
const texture = new Texture2D();
texture.image = imageAsset;
spriteFrame.texture = texture;
node.getComponent(Sprite).spriteFrame = spriteFrame;
});