Laya.WorkerLoader.workerPath = "libs/worker.js";
//开启worker线程
Laya.WorkerLoader.enable = true;
//加载引擎需要的资源
Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, () => {
alert("onLoaded!");
}), null, Laya.Loader.ATLAS, 1, true, null, false, [b]true[/b]);
useWorkerLoader参数设为true后,文件加载不成功?附件:
Demo.zip