大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0092 秒)
...片都报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 自定义场景类导出layaMaxUI.ts有前缀导致报错 小游戏项目 加载有中文的json文件 报错 微信小游戏编译报错 2.2.0beta4,微信上动态合批报错. IDE通过.ui自动生成的ui代码报错 ...
来源: Laya_社区 发布时间: 20180210
...w Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{ this.img.texture = tex; })); 但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res)=>{ ...
来源: Laya_社区 发布时间: 20220919
...一个思路,即改变分包JS的执行方法,使用创建<script>节点的方式来加载分包。 这样能看到分包js的代码 各位意下如何 2016-12-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...
来源: Laya_社区 发布时间: 20161208
...区别的话那第二个是不是更好? Laya.timer.once(1, this, () => { SoundMgr.Ins.playEffect(Enums.EffectId.Ready); }); setTimeout(() => { SoundMgr.Ins.playEffect(Enums.EffectId.Go); }, 1500); 2020-01-03 ...
来源: Laya_社区 发布时间: 20200103
...,可以直接通过vscode打开目前的项目。 也可以在 菜单->文件->工具路径配置 中配置其他代码编辑器的路径。 2020-12-31 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 夜行猫 相关问题 TS项...
来源: Laya_社区 发布时间: 20201231
...60帧后,图片的透明度变为0.5 Laya.timer.frameOnce(60, this, () => { this.Image.alpha = 0.5; }) } } 1.2 定时重复执行 (基于帧率) Laya.timer.frameLoop,定义如下: /** * 定时重复执行(基于帧率)。 * @param delay 间隔几帧(单位为帧)。 * @param caller 执行...
来源: Laya3.0_文档 发布时间: 20251010
...l', contextAttributes: {alpha: false}, }).then(() => { }).catch((err) => { }); } catch(err) { console.error('current env not surpport plugins', error); } Demo.zip 2024-10-14 1 0 分享 微博 QZONE 微信 layabox 赞同来自: ...
来源: Laya_社区 发布时间: 20241010
...te function onFrame():void { // TODO Auto Generated method stub if (ball.x>540||ball.x<10) { xflag=! xflag; } if (xflag) { ball.x+=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } else { ball.x-=v; ball.y=200+d*Math.sin(v*ball.x*Math.PI/180); } } } } CurveDemo.rar 2016-04-24 0 0 分享 微博...
来源: Laya_社区 发布时间: 20160424
...舞台后 onEnable(): void { this.perfMain.init(this.projectId).then(res =>{ Laya.timer.once(8000, this, () => { this.perfMain.section_begin("MainSection1"); }); Laya.timer.once(9000, this, () => { this.perfMain.section_end("MainSection1"); }); }); } 录制后的数据如上图3-2所示,...
来源: Laya3.0_文档 发布时间: 20251010
... var Parser:*; value = value.replace(/>\s+</g, '><'); try { __JS__("rst=(new window.Parser.DOMParser()).parseFromString(value,'text/xml')"); } catch (error:Error) { ...
来源: Laya_社区 发布时间: 20180111