大约有 279 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
Laya_社区(223) Laya3.0_api(11) Laya2.0_文档(10) laya_api(9) Laya2.0_api(8) Laya3.0_文档(7) Laya_示例(6) Laya2.0_示例(5)
...,是会卡顿的,应该用requestAnimationFrame。 Laya本身带Laya.timer.loop和Laya.timer.frameLoop,前一个基于时间,后一个基于帧。按照楼主的需求,应该基于时间,但正因为loop是基于时间的,所以类似setInterval,虽然不会卡顿,但是会不流...
来源: Laya_社区 发布时间: 20170323
... this.loadText.text = "资源加载中……"; // 测试加载效果 Laya.timer.loop(100, this, this.changeProgress); } //这里仅模拟加载演示效果 changeProgress(): void { this.progressBar.value += 0.05; //每次进度条的改变量 if (this.progressBar.value == 1) { this.loadText.text = "...
来源: Laya3.0_文档 发布时间: 20251010
摄像机lookAt如何围绕一个模型做Tween动画? var y = 1; Laya.timer.frameLoop(30, this, function () { y = y + 1; camera.transform.lookAt(model.transform.position, new Laya.Vector3(0, 1, 0), false); camera.transform.rotate(new Laya.Vector3(0, y, 3), false, false); }); 我想让摄像机...
来源: Laya_社区 发布时间: 20170907
...:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/laya.js:59934:9) at TimerHandler.Timer.__init$.__proto.run (file:///D:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/laya.js:9221:46) at Timer.__proto._update (file:///D:/LayaAirIDE/resources/app/out/vs/layaEditor/h5/laya.js:8978:14) ...
来源: Laya_社区 发布时间: 20191108
定时器会互相影响吗 Laya.timer.loop(10, this, this._loopRefresh, [], false);一个定时器用来倒计时 一个定时器有个延时执行Laya.timer.once(100, this, this._checkIsSame, [1], false); 这不是两个定时器吗 为什么第二个延时执行的时候第一个会停住啊 第...
来源: Laya_社区 发布时间: 20180914
你先用Laya.timer.frameLoop 然后再用tween才可以生效 直接用tween没用 什么意思,Tween代码需要在loop里写? 我尝试了在frameLoop里写Tween还是不动 2018-01-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180117
...i.js:4381) at Skeleton.__proto._update (laya.ani.js:4240) at TimerHandler.__proto.run (laya.core.js:9827) at Timer.__proto._update (laya.core.js:9560) at TimerHandler.__proto.run (laya.core.js:9827) at Timer.__proto._update (laya.core.js:9560) at Stage.__pro...
来源: Laya_社区 发布时间: 20180619
...perty 'length' of null at TimeLine.__proto._update (HMain.max.js:12479) at TimerHandler.__proto.run (HMain.max.js:9196) at Timer.__proto._update (HMain.max.js:8951) at Stage.__proto.render (HMain.max.js:16932) at Stage.__proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472) private funct...
来源: Laya_社区 发布时间: 20170327
关于资源回收的问题 JS下的Timer这个类,还有Tween,执行完后是否需要手动调用释放资源还是依赖的caller在destroy阶段会释放掉这部分资源?如果需要手动回收的话,调用clear和clearAll即可还是需要调用其他函数? Video的对象destroy...
来源: Laya_社区 发布时间: 20170509
...17-10-16 0 1 分享 微博 QZONE 微信 qwer535305054 赞同来自: Laya.timer.loop(1000, this, this.setTime); private setTime(){ this.downTime--; Tween.to(img1, { x: randomx, y: randomy }, 250); Tween.to(img2, { x: randomx, y: randomy }, 250);...
来源: Laya_社区 发布时间: 20171016