• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 220 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0045 秒)

201. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 51%]

....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 onLoaded():v...

来源: Laya3.0_文档 发布时间: 20251010

202. [LayaNative3]网络音频在Native播放不了的问题 [ 51%]

...是在Native就播放不了(Android),也没错误信息;用 Laya.loader.load 也是一样,但是 加载图片没问题,唯独音频不行; 2、Native 端 只能调试js无法查看 打印信息吗?          记录一下: 1、在AndroidStudio 用 logcat看了一下日记,会出...

来源: Laya_社区 发布时间: 20250306

203. 使用laya官方示例代码制作微信小游戏无法显示 [ 51%]

...nLoad), Laya.ResourceVersion.FILENAME_VERSION); function beginLoad(){ Laya.loader.load("res/atlas/comp.atlas", Handler.create(null, onLoaded)); } function onLoaded(): void { //实例UI界面 new laya.UI_Label(); }   上图为在layaIDE中的显示效果。   不知道具体是什么原因,希望...

来源: Laya_社区 发布时间: 20180529

204. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 49%]

....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

205. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 49%]

....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 onLoaded():...

来源: Laya2.0_文档 发布时间: 20210715

206. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

... "resources/res/ui/input (3).png", "resources/res/ui/input (4).png"]; Laya.loader.load(this.skins).then( ()=>{ this.onLoadComplete(); } ); } private onLoadComplete(): void { for (var i: number = 0; i < this.skins.length; ++i) { var input: Laya.TextInput = this.createInput(this.skins[i]); input...

来源: Laya3.0_文档 发布时间: 20251010

207. 射线检测-射线检测 [ 49%]

...sform.translate(new Laya.Vector3(0, 1, 3)); camera.clearColor = null; Laya.loader.create(["../../res/threeDimen/skinModel/NvWu/NvWu-shenminvwu.lm", "../../res/threeDimen/skinModel/CunMinNan/CunMinNan-cunminnan.lm", "../../res/threeDimen/skinModel/XiaoFeiLong/XiaoFeiLong-xiaofeilong.lm", "../../res/t...

来源: Laya_示例 发布时间: 20251209

208. 微信小游戏IDE加载位图字体,提示错误 [ 48%]

...nt.__proto.parseFont (http://127.0.0.1:61385/game/code.js:803:17)     at Loader.__proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11)     at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15)     at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:...

来源: Laya_社区 发布时间: 20180306

209. 动画不显示 [ 46%]

...aya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh;     import laya.debug.DebugP...

来源: Laya_社区 发布时间: 20170921

210. 打包微信小游戏报错 ReferenceError: Matter is not defined [ 44%]

...,matter.js是直接用 <script type="text/javascript" src='matter.js' loader='laya'></script> 引入 打包后在微信开发者工具打开报错:Matter is not defined, 在game.js里面添加了 let matter = require("matter.js"); window.Matter = matter; 但是还是不行,有没...

来源: Laya_社区 发布时间: 20180531