大约有 23 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0030 秒)
... Laya.init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("../atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoade...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ ...
来源: Laya2.0_文档 发布时间: 20210715
...过wx.createWorker方法来创建Worker,在适配库中使用class MiniWorkerLoader接口来自定义实现微信小游戏的Worker内容,从而尽可能将Worker的使用接入引擎的统一处理流程,在项目层减少各平台Worker的适配,并且可以扩展到其他小游戏平台...
来源: Laya3.0_文档 发布时间: 20251010
... Laya.init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要的资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoad...
来源: Laya2.0_文档 发布时间: 20210715
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190227
3D开启多线程报错 开启多线程后 Laya.WorkerLoader.workerPath="libs/worker.js"; Laya.WorkerLoader.enable=true; 加载导出的3D模型 Laya.Sprite3D.load("res/assets/LayaScene_guanyu/TestScene.lh"); 报错:laya.d3.js:37225 Uncaught TypeError: Failed to execute 'texImage2D' on 'Web...
来源: Laya_社区 发布时间: 20190323
...都会有这个问题。 代码里面打开worker的写法: Laya.WorkerLoader.workerPath = "libs/worker.js"; Laya.WorkerLoader.enable = true; 模型上传在附件 附件 : --> lh文件和模型文件.rar 2018-02-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20180212
... 0 0 分享 微博 QZONE 微信 Victor 赞同来自: 为什么设置 Laya.WorkerLoader.enable = true; 运行项目一片漆黑 2017-03-14 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Victor 相关问题 请问 《学习开发HTML5游...
来源: Laya_社区 发布时间: 20170314
...了3D贴图资源 //开启worker线程,加载不了3D贴图资源 Laya.WorkerLoader.enable = true; 测试方法:运行点击按钮 附件 : --> RolePropUI.zip 2019-12-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...
来源: Laya_社区 发布时间: 20191212
...iyang5535 • 2017-03-07 11:22 查到有两份内存的bug了!开启Laya.WorkerLoader.enable=true后,创建的HtmlCanvas在resourceManager里面没有清理掉!
来源: Laya_社区 发布时间: 20170306