大约有 282 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
Laya_社区(223) Laya2.0_文档(13) Laya3.0_api(11) laya_api(9) Laya2.0_api(8) Laya3.0_文档(7) Laya_示例(6) Laya2.0_示例(5)
...消耗。 如要使用,建议在WebGL模式下使用; ### 3、不要在Timer的循环里创建对象及复杂计算 由于Timer的`loop()`与`frameLoop()`方法里会不断的循环执行,当创建对象及复杂计算时,会导致大量的性能消耗出现在循环里,因此,尽可能...
来源: Laya2.0_文档 发布时间: 20210714
...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
....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
...消耗。 如要使用,建议在WebGL模式下使用; ### 3、不要在Timer的循环里创建对象及复杂计算 由于Timer的`loop()`与`frameLoop()`方法里会不断的循环执行,当创建对象及复杂计算时,会导致大量的性能消耗出现在循环里,因此,尽可能...
来源: Laya2.0_文档 发布时间: 20210715
...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
...=== 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
定时重复执行 var y = 0;Laya.timer.loop(1, this, ()=>{ y++; }); 如果y=1000时,是不是消耗的时间应该为1秒? 为什么实际上执行的时间大于1秒? 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180718
...天所遇到的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
...什么用能不能去掉。 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
... 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