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

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

1. Laya.Timer.clear 的源码可能有个问题。 [ 100%]

Laya.Timer.clear 的源码可能有个问题。 是这样的,当我需要定时执行某个函数时,并且想要在某个情况下clear掉这个执行,clear掉的只是最入栈的Handler。情景如下:  //我想要每隔1s, 执行一次 b 函数(行为),最多执行6次 for(let i = 0...

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

2. Laya.timer.loop 的 Laya.timer.clear 问题 [ 99%]

Laya.timer.loop 的 Laya.timer.clear 问题 Laya.timer.loop(1000, this, ()=>{ 在这里怎么停 });   这个问题一直没人回答。。我贴出来。。让有经验的人回答一下。。。 2018-11-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

3. 关闭指定定时器timer [ 97%]

关闭指定定时器timer 我现在用js写了一些定时器,但是有个逻辑是运行到节点关闭一个定时器,请问我该怎么写呢? 假设有这两个定时器 Laya.timer.loop(100, this,update); Laya.timer.loop(1000,this,shoot_boss); 我希望关闭第二个定时器,该如何...

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

4. laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 [ 95%]

laya.timer.clear这个定时器的回调函数到底怎么用啊?模拟器上不报错,真机运行会抱着个错 file:///C:\Users\a754627670\AppData\Roaming\Tencent\Users\754627670\TIM\WinTemp\RichOle\FS)UC[2O9%@MVFUE31{L2MS.png   附件 : --> 2018-05-05 添加评论 免费帖 --> 分享 微...

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

5. 执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop [ 93%]

执行了这个 Laya.timer.clear(this, this.onLoop);还是会继续执行onLoop 请问是什么问题 2018-04-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 你看一下是否是你...

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

6. [LayaAir3][Laya3.1.1]Timer内存泄漏 [ 93%]

[LayaAir3][Laya3.1.1]Timer内存泄漏 创建一个计时器,发现调用Laya.timer.clear,计时器回调函数还会持续调用,源码里看下,是不是在clearclearAll里忘记清理了   附件 : --> 2024-03-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...

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

7. 微信小游戏渲染开放域卡顿处理 [ 90%]

...放域界面方法,即定时器的回调方法(重点): function onTimer() {     // bitmap为纹理的bitmap属性,自行赋值     var func = bitmap._source && bitmap.reloadCanvasData;     func && func.call(bitmap); } 3.关闭渲染: 个人认为5秒停止定时...

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

8. loop 我想在回调里暂停,然在开启 [ 89%]

loop 我想在回调里暂停,然在开启 var i = 0;  Laya.timer.loop( 500, this, function () {       i = i < (arr.length - 1) * 6 ? i + 1 : 0;       this.noticeList.scrollBar.value = i * 5        if (i % 6 == 0) {         console.log("在这里停止", i)        }  ...

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

9. laya.utils.Timer_API3.0 [ 89%]

...c/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Timer" Timer Class Timer Timer 是时钟管理类。它是一个单例,不要手动实例化此类,应该通过 Laya.timer 访问。 Hierarchy Timer Index Constructors constructor Properties currFrame currTimer scale Acce...

来源: Laya3.0_api 发布时间: 20231115

10. laya.utils.Timer [ 86%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames TimerProperties | Methods Packagelaya.utilsClasspublic class TimerInheritanceTimer Object Timer 是时钟管理类。它是一个单例,不要手动实例化此类,应该通过 Laya.timer 访问。 Public Properties Pr...

来源: laya_api 发布时间: 20170929