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

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

81. 其它优化策略(TypeScript-2D进阶篇(TS)-性能优化) [ 67%]

...消耗。 如要使用,建议在WebGL模式下使用; ### 3、不要在Timer的循环里创建对象及复杂计算 由于Timer的`loop()`与`frameLoop()`方法里会不断的循环执行,当创建对象及复杂计算时,会导致大量的性能消耗出现在循环里,因此,尽可能...

来源: Laya2.0_文档 发布时间: 20210714

82. 输入设备-贪吃蛇(重力感应) [ 67%]

...ance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.produceFood); // 游戏开始时有一个食物 this.produceFood(); } initSnake() { const Point = Laya.Point; for (let i = 0; i 0) { let...

来源: Laya2.0_示例 发布时间: 20251130

83. 什么情况下Tween缓动会停止?除了暂停函数外 [ 67%]

....addChild(kaishi); kaishi.playAnim(); this.anim_array.push(kaishi);  Laya.timer.once(1700, this, function () { kaishi.onDestroy(); kaishi.destroy(true);   两个脚本是相互独立的。 2020-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

84. 其它优化策略(ActionScript-2D进阶篇(AS3)-性能优化) [ 67%]

...消耗。 如要使用,建议在WebGL模式下使用; ### 3、不要在Timer的循环里创建对象及复杂计算 由于Timer的`loop()`与`frameLoop()`方法里会不断的循环执行,当创建对象及复杂计算时,会导致大量的性能消耗出现在循环里,因此,尽可能...

来源: Laya2.0_文档 发布时间: 20210715

85. 骨骼动画报错!!! [ 67%]

...leton.__proto._createGraphics     at Skeleton.__proto._update     at TimerHandler.__proto.run     at Timer.__proto._update     at Stage.__proto.render     at Stage.__proto._loop     at loop   引擎版本1.6.2 我们日志统计到,大量玩家报这个错误 我找到是因为A...

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

86. 针对2.0.0 beta5 setLoadingPage 做增强 [ 66%]

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

87. 定时重复执行 [ 66%]

定时重复执行 var y = 0;Laya.timer.loop(1, this, ()=>{      y++; });   如果y=1000时,是不是消耗的时间应该为1秒? 为什么实际上执行的时间大于1秒? 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...

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

88. 建议给Tween增加一些功能, 例如无限循环 , 增加一些回调函数 [ 66%]

...天所遇到的BUG: 在做动Tween画的情况下 执行某个容器.clearTimer(); laya.core.js:9184 Uncaught TypeError: Cannot read property '$_TID' of undefined 有时候容器清除掉全部子容器后调用子容器: laya.core.js:15215 Uncaught TypeError: Cannot read property '_tf' of null 粒...

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

89. VM6771:1 [GameOpenDataContext] Cannot assign to read only canvas. [ 66%]

...什么用能不能去掉。 Cannot read property 'offCanplay' of null Laya.timer.loop() 报错 Cannot read property 'loop' of null Uncaught TypeError: Cannot read property 'load' of null 问题状态 最新活动: 2019-04-24 09:36 浏览: 1676 关注: 2 人 Yangcy • 2019-04-23 17:48 阿西吧。...

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

90. 切换后台时,引擎如何判断是否停止定时器? [ 65%]

... this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{         console.log("delta:",Laya.timer.delta);     }      private onFocus(): void {         console.log("onFoc...

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