大约有 49 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0029 秒)
... 2017-06-24 0 0 分享 微博 QZONE 微信 183*****755 赞同来自: Timer.delta,是两帧率之间的间隔时间,加上这个变量即可。 2017-07-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 q755456 相关问题 微信关...
来源: Laya_社区 发布时间: 20170610
...er.frameLoop(1,this,this.update); } private update() { let dt = Laya.timer.delta / 1000; console.log("dt="+dt); } } 附件中图1是在iphone6上面运行打印的信息,图2是在模拟下运行打印的信息。 请问有人碰到过这个问题吗? 附件 : --> 2018-08-08 添加评论 免...
来源: Laya_社区 发布时间: 20180808
... private MouseWheel(e: Laya.Event) { let xs = this.firstSp.scaleX; if (e.delta > 0) { xs = xs * 1.2; } else { xs /= 1.2; } this.firstSp.scale(xs, xs); } } new GameMain(); 2019-03-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20190314
...功能。然后只在Main里开一个frameLoop,作为主循环,获取delta。主循环中调用顶层节点的update。 为了减少update子节点的层层调用,我重写了addChild的逻辑,使最上层的节点保存了所有子节点的列表,updateChildren的时候就不层层调...
来源: Laya_社区 发布时间: 20170821
....timerCount) this.timerCount += Laya.timer.delta/1000 } context.ctx.setIBVB(x, y,this.iBuffer, this.vBuffer,this.iNum,null,this.shader,this.shaderValue, 0, 0); } 2.我将自定义的精灵类添加到u...
来源: Laya_社区 发布时间: 20181121
...t(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rotation = out1; transform.translate(v3) 附件中是unity的效果 2018-07-26 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180726
...Update(): void { // 更新时间 this.dayTime = (this.dayTime + Laya.timer.delta / 1000) % this.dayDuration; const totalMinutes = Math.floor((this.getAdjustedProgress()) * 24 * 60); const hours = Math.floor(totalMinutes / 60); const minutes = totalMinutes % 60; const timeString = `${this.padNumber(h...
来源: Laya3.0_文档 发布时间: 20250214
...aturation color gray onAfterDeserialize reset setByMatrix setColor _filter DELTA_INDEX GRAY_MATRIX IDENTITY_MATRIX LENGTH Legend Class Class with type parameter Constructor Property Method Object literal Variable Function Type alias Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...*/ onUpdate(): void { var elapsedTime: number = Laya.timer.delta; if (!isNaN(this.lastMouseX) && !isNaN(this.lastMouseY) && this.isMouseDown) { var scene: Laya.Scene3D = this.owner.scene; var offsetX: num...
来源: Laya_社区 发布时间: 20200707
... onUpdate(): void { this.spineAni.maxDetlaTime = Laya.timer.delta / 1000 * Laya.timer.scale; } 这种方式准确,但不建议。 2、直接设置一个较大的maxDetlaTime值,相当于取消了引擎内部的限制,完全取决于Laya.timer.scale。 虽然我们提供了...
来源: Laya_社区 发布时间: 20241217