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

大约有 280 项符合查询结果, 库内数据总量为 30,723 项。 (搜索耗时: 0.0035 秒)

41. Timer Handler被覆盖 [ 75%]

Timer Handler被覆盖   class Timer   _getHandler(caller, method) { var cid = caller ? caller.$_GID || (caller.$_GID = ILaya.Utils.getGID()) : 0; var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; }   当游戏玩的功能多时间长了,随着cal...

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

42. 在手机QQ浏览器上,在loop循环里修改inputText的位置会使inputText不显示,在电脑上和手机内置浏览器都是正常的 [ 75%]

...内置浏览器都是正常的 qq浏览器版本:安卓 8.1.3.3851 Laya.timer.frameLoop(100, this, function () { inputText.y = Laya.Browser.height-100; }); 2018-04-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回...

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

43. UI-ProgressBar [ 75%]

...dler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"...

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

44. timer计时器怎么计算毫秒呢 [ 74%]

timer计时器怎么计算毫秒呢 当前timer计时器以帧为单位,这样很不科学,我想显示毫秒的数字,但是没法设置0.06帧啊。这怎么办? 2017-06-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

45. UI-ProgressBar [ 74%]

..."; this.progressBar.changeHandler = new Handler(this, this.onChange); Laya.timer.loop(100, this, this.changeValue); } changeValue() { if (this.progressBar.value >= 1) { this.progressBar.value = 0; } this.progressBar.value += 0.05; } onChange(value) { console.log("进度:" + Math.floor(value * 100)...

来源: Laya2.0_示例 发布时间: 20240929

46. Laya.Point替代了laya.maths.Point [ 74%]

...tes方法,在laya有替代的方法吗 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? 动效播放直接到最后一帧,有替代方案么 flash中的R...

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

47. 回调函数传递sprite3D问题 [ 74%]

回调函数传递sprite3D问题 使用 Laya.timer.frameLoop();函数 看了官方API,第四个参数是传一个数组,作为回调函数的入参, var spriteArray = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprite...

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

48. 如何停止重复执行Laya.timer.frameLoop(1,this,onDrag); [ 74%]

如何停止重复执行Laya.timer.frameLoop(1,this,onDrag); 如何让重复执行的函授停止,比如Laya.timer.frameLoop(1,this,onDrag);中的onDrag。谢谢~ 2017-02-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...

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

49. 怎么停止正在运行Laya.timer.frameLoop的回调函数 [ 74%]

怎么停止正在运行Laya.timer.frameLoop的回调函数   附件 : --> 2018-05-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: …… Laya.timer.clear(this,animate); 2018-05-23 1 0...

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

50. 浏览器最小化后 Laya.timer不准确的问题 [ 73%]

浏览器最小化后 Laya.timer不准确的问题 当谷歌浏览器最小化后,Laya.timer.loop 等时间不准确,大多浏览器最小化后,Laya中的timer时都慢了,怎么解决??? 2017-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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