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

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

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

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

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

2. Timer.clear 方法有问题 [ 99%]

Timer.clear 方法有问题 如果给一个method加了多个定时器,这个clear方法只能清除该method的一个定时器。如果这里用clearAll方法,又会把其它method的定时器删掉 附件 : --> 2018-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...

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

3. Timer.clear清理同caller同method的多个loop [ 98%]

Timer.clear清理同caller同method的多个loop 我需要有多个loop同时执行,所以第四个参数用false(不覆盖上一个loop),实际需求是一个界面里同时有几条文本同屏循环显示,各自时间间隔不同文本内容不同。 但是当我想停止其中一个loop...

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

4. timer无法用clear清除的BUG [ 97%]

timer无法用clear清除的BUG 我又试了一下, 当loop函数用this绑定时,clear无法清除 ,clearAll可以清除 public function startLoop() {       Laya.timer.loop(2000,this,this.onLoop.bind(this)); }   private function onLoop():void {     if(this.stop){         Laya...

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

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

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

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

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

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

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

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

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

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

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

9. Laya.timer.loop()如何停止 [ 91%]

Laya.timer.loop()如何停止 Laya.timer.loop()如何停止 2017-06-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 189*****192 赞同来自: zjwytqm 、cuixueying 、umi_  Laya.timer.loop(1000, this, animateT...

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

10. laya.utils.Timer_API3.0 [ 90%]

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