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

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

1. Timer.clear清理同caller同method的多个loop [ 100%]

...动画异常 多个文件之间相互import,运行时报错 如何清理所有的子无素 Laya2.6.1 beta 场景模式为 加载模式 清理并导出之后 bin目录下没有生成 ui.json 文件!!! 清理运行时不必要的内存问题 多个骨骼动画可以预加载吗,有好几十...

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

2. Laya.timer.loop()如何停止 [ 95%]

...n动画在自然停止时不会移除play时添加的frameloop 如何停止所有音效而不停止背景声音 在编辑器中做好的动画,应该如何在代码中手动让他停止下来,不再播放 如何停止整个游戏 怎么停止正在运行Laya.timer.frameLoop的回调函数 打包...

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

3. laya.utils.Timer [ 91%]

...d 清理定时器。 Timer  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...

来源: laya_api 发布时间: 20170929

4. laya.utils.Timer [ 91%]

...d 清理定时器。 Timer  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...

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

5. 定时器 · LayaAir3.0文档 · LAYABOX [ 90%]

...{ handler.clear(); } } Laya.timer.clearAll:清理对象指定作用域的所有定时器。定义如下: /** * 清理对象身上的所有定时器。 * @param caller 执行域(this)。 */ clearAll(caller: any): void { if (!caller) return; for (var i: number = 0, n: number = this._handlers.lengt...

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

6. laya.utils.Timer_API3.0 [ 88%]

...caller: any): void Defined in laya/utils/Timer.ts:254 清理对象身上的所有定时器。 Parameters caller: any 执行域(this)。 Returns void clearCallLater clearCallLater(caller: any, method: Function): void Defined in laya/utils/Timer.ts:296 取消执行 callLater 。 Parameters caller: any...

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

7. 怎么停止当前的定时器? [ 85%]

...3273 相关问题 Laya.timer.loop()如何停止 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 求教: soundManager如何停止正在播放的背景音乐 如何识别当前环境是微信小游戏环境 Laya拖尾怎么停止或清除,比如要瞬移角色...

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

8. Node.ts 节点销毁之后为什么要注释掉 timer 的清理操作。 [ 83%]

...s.removeChildren(); } this.onDestroy();  this._children = null;  //移除所有事件监听 this.offAll();  //移除所有timer //this.timer.clearAll(this); } 附件 : --> 2022-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接...

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

9. 关于removechild、destory、clear的问题 [ 82%]

...行变化。Graphics以命令流方式存储,可以通过cmds属性访问所有命令流。Graphics是比Sprite更轻量级的对象,合理使用能提高应用性能(比如把大量的节点绘图改为一个节点的Graphics命令集合,能减少大量节点创建消耗)。removechild只是...

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

10. 【简单跑酷--JS版】---Lv.3 添加地板 [ 81%]

...地板 2、删除地板 3、获取地板 这里我把这个MapFloor当成所有floor的父级显示对象 (其实也有其他方式  这里暂不考虑) 嗯 那我们根据上面的三个功能可以写下如下代码  (function () { /** * 地板地图类 * */ function MapFloor(){ MapFloor.__s...

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