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

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

1. 休眠后,如何保持frameLoop循环调用和Laya.timer.once定时延迟进度一致 [ 100%]

休眠后,如何保持frameLoop循环调用和Laya.timer.once定时延迟进度一致 游戏主逻辑用frameLoop循环刷新。这其中可能会因玩家的操作触发某个延时执行事件Laya.timer.once 如果触发Laya.timer.once后网页休眠,Laya.timer.once依然会以现实中的经...

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

2. laya.utils.Timer_API3.0 [ 86%]

...le Accessors delta Methods callLater clear clearAll clearCallLater destroy frameLoop frameOnce loop once pause resume runCallLater runTimer toString Constructors constructor new Timer(autoActive?: boolean): Timer Defined in laya/utils/Timer.ts:34 创建 Timer 类的一个实例。 Parameters Default...

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

3. laya.utils.Timer [ 83%]

... clearAll(caller:*):void 清理对象身上的所有定时器。 Timer  frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行(基于帧率)。 Timer  frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:B...

来源: laya_api 发布时间: 20170929

4. laya.utils.Timer [ 82%]

... clearAll(caller:*):void 清理对象身上的所有定时器。 Timer  frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行(基于帧率)。 Timer  frameOnce(delay:int, caller:*, method:Function, args:Array = null, coverBefore:B...

来源: Laya2.0_api 发布时间: 20190513

5. Laya.timer.once();第四个参数 覆盖之前的延迟执行是啥意思 [ 82%]

...函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? Dispather.event参数传的是数组,为什么收到的参数却是个int类型? 通过AnimatorState为Animator添加多个播放状态islooping属性会被覆盖 问题状态 最新活动: 2018-05-25 1...

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

6. 定时器 · LayaAir3.0文档 · LAYABOX [ 76%]

...Image.alpha = 0.5; }) } } 1.2 定时重复执行 (基于帧率) Laya.timer.frameLoop,定义如下: /** * 定时重复执行(基于帧率)。 * @param delay 间隔几帧(单位为帧)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数。 * @p...

来源: Laya3.0_文档 发布时间: 20230724

7. laya.display.Node [ 73%]

...ent(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:...

来源: laya_api 发布时间: 20170929

8. laya.display.Node_API3.0 [ 72%]

...ce bubbleEvent callLater clearTimer 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

9. 怎么让代码在下一帧执行 [ 72%]

...容相关的链接 提交 1 个回复 cuixueying 赞同来自: Laya.timer.frameLoop,计时器执行间隔为1帧,在计时器回调里执行即可,执行完成将frameLoop移除! 2017-08-10 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 ...

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

10. 灯光-方向光 [ 71%]

...ull, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLight.dir...

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