大约有 48 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0079 秒)
...Image.alpha = 0.5; }) } } 1.2 定时重复执行 (基于帧率) Laya.timer.frameLoop,定义如下: /** * 定时重复执行(基于帧率)。 * @param delay 间隔几帧(单位为帧)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数。 * @p...
来源: Laya3.0_文档 发布时间: 20251010
... 提交 1 个回复 w1114367261 赞同来自: 可以尝试使用Laya.timer.frameLoop进行循环此方法基于帧率执行 定时重复执行(基于帧率)。 * @param delay 间隔几帧(单位为帧)。 * @param caller 执行域(this)。 ...
来源: Laya_社区 发布时间: 20180409
...aram coverBefore 是否覆盖之前的延迟执行,默认为 true 。 */ frameLoop(delay: number, caller: any, method: Function, args?: Array<any>, coverBefore?: boolean): void; /** 返回统计信息。*/ toString(): string; /** * 清理定时器。 * @param caller 执行域(this)。 * @par...
来源: Laya_社区 发布时间: 20171109
...舒服,自己封装的定时器,不想用可直接替换成Laya.timer.frameLoop来替代,请自行修改跟Timer相关代码。 module lie { /** * 定时器,可启动、停止及统计已运行时间(单位毫秒),默认启动 */ export class Timer { ...
来源: Laya_社区 发布时间: 20181114
...void { //设置定时器执行,定时重复执行(基于帧率) Laya.timer.frameLoop(1, this, this.animate); } private animate(): void { // 旋转立方体(四元数) this.cube.transform.rotate(this.rot, false, false); } } 旋转的效果如动图2-1所示: (动图2-1) 2.2 localRotationEul...
来源: Laya3.0_文档 发布时间: 20251010
...x<0){ this.__bindList.push(source); } this.addChild(source); this.timer.frameLoop(1,this,this.__updateBinds); } unbind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(index<0){ throw new Error("找不到要删除的绑定内容"); } this.removeChild(source); ...
来源: Laya_社区 发布时间: 20190805
...event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Laya.timer.frameLoop()。 Node frameOnce(delay:int, caller:*, method:Fu...
来源: Laya2.0_api 发布时间: 20190513
...putChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getHeight hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once rem...
来源: Laya3.0_api 发布时间: 20231102
...bleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild r...
来源: Laya3.0_api 发布时间: 20231115
...bleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild r...
来源: Laya3.0_api 发布时间: 20231115