[]关于使用资源版本控制加载出错问题
打包成小游戏后 使用资源版本控制 会出现加载资源出错,没有使用version里的的"res/atlas/com/loading.atlas":""res/atlas/com/loadings3442d.atlas";里的对应关系 还是去加载"res/atlas/com/loading.atlas",导致出现加载"res/atlas/com/loading.atlas"失败的错误;
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
也许灬
赞同来自:
var LoadingView_configUrl ="version.json";
laya.net.ResourceVersion.enable(LoadingView_configUrl,Laya.Handler.create(this,this.onProLoadedBef),2);
_proto.onProLoadedBef =function()
{
var ProResArray = [
{url : "res/atlas/com/loading.atlas" , type : Laya.Loader.ATLAS},
];
Laya.loader.load(ProResArray, Laya.Handler.create(this, this.onProLoaded));
}执行上面的步骤