附件是 加载demo 代码非常少 可以重现我说的问题
function initLaya() {
console.log('Laya.version:' + Laya.version);
//初始化微信小游戏
Laya.MiniAdpter.init();
//初始化引擎
Laya3D.init(750, 1334, true);
//适配模式
Laya.stage.scaleMode = 'fixedwidth';
Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;
//开启统计信息
Laya.Stat.show();
loadRes();
}
function loadRes(){
Laya.URL.rootPath = Laya.URL.basePath = 'https://similac.beats-digital.com/';
//加载素材
//预加载所有资源
var resource = [
{ url: "res/atlas/game/game.atlas", type: Laya.Loader.ATLAS },
{ url: "res/models/scene/scene.lh", clas: Laya.Sprite3D, priority: 1 },
{ url: "res/models/xiaoji/xiaoji.lh", clas: Laya.Sprite3D, priority: 1 },
{ url: "res/models/item/item.lh", clas: Laya.Sprite3D, priority: 1 }
];
Laya.loader.create(resource, Laya.Handler.create(this, onComplete), Laya.Handler.create(this, onLoading));
}
function onLoading(progress){
console.log("加载进度: " + progress);
}
function onComplete(){
console.log('onComplete');
wx.showModal({
title: '提示',
content: 'onComplete',
})
}
initLaya();