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

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

61. CPU优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 67%]

...计时器 LayaAir提供两种计时器循环来执行代码块。 1. `Laya.timer.frameLoop`执行频率依赖于帧频率,可通过Stat.FPS查看当前帧频。 1. `Laya.timer.loop`执行频率依赖于参数指定时间。 ```javascript Laya.timer.frameLoop(1, this, animateFrameRateBased); Laya.s...

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

62. 在微信分享成功的回调函数里,Laya播放音效失败。 [ 67%]

...播放音乐") Laya.SoundManager.stopMusic(); //停止游戏主循环 Laya.timer.clear(this, this.onLoop); //移除舞台的鼠标移动事件 Laya.stage.off(Laya.Event.MOUSE_MOVE); }  //恢复 GameEx.prototype.resume = function () { //在循环中创建敌人 Laya.timer.frameLoop(1,this,this.onLoo...

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

63. var mid=method.$_TID || (method.$_TID=(this._mid++)*100000); [ 67%]

...l不能使用 reflection error: can not find method signature 反射错误 Timer.clear清理同caller同method的多个loop 问题状态 最新活动: 2019-05-21 20:59 浏览: 815 关注: 2 人

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

64. 资源加载 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...e(); this.owner.addChild(sp); let i: number = 0; //每秒重画一次 Laya.timer.loop(1000, this, () => { i == res.length && (i = 0); //清除sp节点的所有绘图(不含子节点) sp.graphics.clear(); //在sp节点上重绘纹理 sp.graphics.drawTexture(res[i]); i++; }); }); } } 2....

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

65. LoaderManager的_loadAssets方法 completeHandler是否有内存问题 [ 65%]

...已经无效) 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 mask在layaplayer中有问题 问题状态 最新活动: 2018-04-25 09:59 浏览: 749 关注: 1 人

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

66. 关于customRender函数不执行的问题 [ 65%]

...不了资料流 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 写了个边缘光的自定义shader,有很多问题,帮忙看一下 问题状态 最新活动: 2018-08-01 11:56 浏览: 4332 关注: 2 人 五月 • 2018-08-01 12:51 谢拉,不过文档可以完善...

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

67. 背景音乐切换问题 [ 65%]

...的比如: SoundManager.playMusic("audio/BackgroundPlaying3.mp3"); Laya.timer.once(3000,this,()=>{ SoundManager.playMusic("audio/table_music.mp3"); })没用,第一个又重新播放。请问是什么问题? 2017-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

68. Handler.create的回收问题 [ 65%]

...r.load("res/img/1.png", this.h1); } private loadPicComplete(): void { Laya.timer.once(2000, this, this.actT); } private actT(): void { this.h2 = Laya.Handler.create(this, this.loadPicComplete, null, true); console.log(this.h1 == this.h2);//为什么是false } } } new laya.Test(); 2017-12-21 添加...

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

69. 如何在代码中new Poly [ 65%]

...pedition, 0); this.homeScaleFilterImgList.push(this.imgExpedition);  Laya.timer.once(2000, this, () => {  let dd: Laya.HitArea = new Laya.HitArea(); this.imgExpedition.hitArea = dd; dd.hit.drawRect(174, 123, 210, 230, "#000000"); dd.unHit.clear(); dd.unHit.drawRect(0, 0, 174, 123, "#000000"); }...

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

70. 如何清除graphics绘制的矢量图 [ 65%]

...图             let count1 = 1;             Laya.timer.loop(3000, this, function () {                 sp.graphics.clear();                 if (count1 == 0) {                     sp.graphics.drawLines(0, 0, path, "#0eff00", 5...

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