大约有 179 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0038 秒)
Laya_社区(94) Laya3.0_api(64) Laya3.0_文档(6) Laya2.0_文档(5) Laya_示例(3) Laya2.0_示例(3) laya_api(2) Laya2.0_api(2)
...ame1():void { xNum = Math.random()*7 - 3; yNum = Math.random()*7 - 3; Laya.timer.loop(20,this,onRun); Laya.timer.frameLoop(10,this,refresh); } private function refresh():void { IconSpr.graphics.clear(); iconSpr.graphics.clear(); if(htmlCanvas) htmlCanvas.clear(); htmlCanvas = iconSpr.drawToCanvas(ic...
来源: Laya_社区 发布时间: 20180113
[0]Timer的偶发性Bug 反馈一个bug,Timer的Clear和ClearAll未设置._map[handle.key] = null 会偶发性出现:Tween突然莫名其妙的停止。 这个bug在2.x的时候有反馈过,但是有修改,不过似乎没改干净 附件 : --> 2023-10-25 1 条评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20231025
Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 /** * <p>销毁此对象。destroy对象默认会把自己从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。</p> * <p>destroy时会...
来源: Laya_社区 发布时间: 20220224
...; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); } protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Browser.getElementById("layaCanvas"); layaC...
来源: Laya_社区 发布时间: 20190520
怎么停止当前的定时器? Laya.timer.loop(5000, this, function(){ //我想在这里停止当前这个定时器,我这个方法没有单独定义函数名。 }) 2018-02-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...
来源: Laya_社区 发布时间: 20180201
...,调用同样的逻辑代码。如下,我启动了3个任务。 Laya.timer.loop(delay,this,onLoop,[param1]); Laya.timer.loop(delay,this,onLoop,[param2]); Laya.timer.loop(delay,this,onLoop,[param3]); 在条件满足后清理定时器,目前只有如下接口 Laya.timer.clear(this,onLoop); 导...
来源: Laya_社区 发布时间: 20171107
怎么实现一个Timer的loop的delay时间越来越短? loop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void delay:int在loop过程中可以修改吗? 定时重复执行。怎么实现一个Timer的loop的delay时间越来越短? 2017-06-26 添加评论...
来源: Laya_社区 发布时间: 20170626
...Game.GetServerTime() : startTime_ ); this.endTime = startTime + time; Laya.timer.loop(1,this,ef); isCd = true; } public function stop():void { this.set360(-1); Laya.timer.clear(this,ef); isCd = false; } } } 2017-11-24 1 2 分享 微博 QZONE 微信 wudi199553 赞同来自: 计时器属于简单...
来源: Laya_社区 发布时间: 20171124
...=== null) otherHandler = this._promiseHandler if (!this._loadScene) { Laya.timer.loop(10, this, this.openScene, [url, otherHandler, closeOther, param, complete, progress]) return } Laya.timer.clear(this, this.openScene) Laya.Scene.showLoadingPage(null, 0) // 同步执行 Promise.all([this._load(url,...
来源: Laya_社区 发布时间: 20181124
关于资源回收的问题 JS下的Timer这个类,还有Tween,执行完后是否需要手动调用释放资源还是依赖的caller在destroy阶段会释放掉这部分资源?如果需要手动回收的话,调用clear和clearAll即可还是需要调用其他函数? Video的对象destroy...
来源: Laya_社区 发布时间: 20170509