Gloader laya版本不支持加载不带.png或者.jpg后缀图片

现在laya版本Gloader 不支持加载不带.png或者.jpg后缀图片, 例如微信头像地址。用Gloader的url加载,不带图片后缀会用文本的方式加载导致转texture的时候报错了。 
解决方法在load调用加载的时候加"image"类型就正常可以加载了。

   __proto.loadExternal=function(){
        AssetProxy.inst.load(this._url,Handler.create(this,this.__getResCompleted),null,"image");
    }
 
已邀请:

谷主

赞同来自:

好的

要回复问题请先登录注册