大约有 358 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
Laya_社区(127) Laya3.0_api(62) Laya2.0_api(58) laya_api(54) Laya_示例(25) Laya2.0_示例(17) Laya2.0_文档(9) Laya3.0_文档(6)
... new Laya.Vector3(0, 0, 0.5); var scaleDelta = 0; var scaleValue = 0; Laya.timer.frameLoop(1, this, loop); function loop() { scaleValue = Math.sin(scaleDelta += 0.01); pos1.elements[0] = pos2.elements[0] = scaleValue * 13; pos1.elements[1] = Math.sin(scaleValue * 20) * 2; pos2.elements[1] = Math.sin...
来源: Laya_示例 发布时间: 20251130
缓动动画运行一段时间后失效 Laya.timer.loop(2000, this, this.doTween); doTween() { Laya.Tween.from( this.skeleton, { scaleX: 1.3, scaleY: 0.8 }, 200, Laya.Ease.bounceOut, ...
来源: Laya_社区 发布时间: 20200716
...play(null, 1.0, 40, 70); }); var _quaternion = new Laya.Quaternion(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); var _direction = directionLight.direction; Laya.Vector3.transformQuat(_direction, _quaternion, _direction); directionLig...
来源: Laya_示例 发布时间: 20251130
...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matrix Sprite viewport : ...
来源: laya_api 发布时间: 20170929
...试了通过创建cannon的物理场景和刚体几何体对象,由laya.timer驱动cannon解算物理变化,然后不断把cannon世界里的物体变化实时赋值给laya场景里的物体,但是感觉效率有点低啊…… 比如: package { import laya.d3.core.BaseCamera; import laya...
来源: Laya_社区 发布时间: 20170331
...显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:Context, x:Numbe...
来源: Laya2.0_api 发布时间: 20190513
...灯光旋转动画 this.lightComp.lightRotation += this.rotateSpeed * Laya.timer.delta / 1000; // 实现灯光缩放动画 this.scaleTime += Laya.timer.delta / 1000 * this.scaleSpeed; const scale = 1 + Math.sin(this.scaleTime) * 0.5; // 增加缩放变化幅度 this.lightComp.lightScale.setValue(sca...
来源: Laya3.0_文档 发布时间: 20251010
回调函数传递sprite3D问题 使用 Laya.timer.frameLoop();函数 看了官方API,第四个参数是传一个数组,作为回调函数的入参, var spriteArray = new Array(); spriteArray.push(warehouse1); Laya.timer.frameLoop(1, this, freshBubble,spriteArray); function freshBubble(sprite...
来源: Laya_社区 发布时间: 20180105
...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matrix Sprite viewport : ...
来源: laya_api 发布时间: 20170929
...ya.stage.addChild(new Laya.Image("../../res/threeDimen/monkey.png")); Laya.timer.frameLoop(1, this, animate); } var _position = new Laya.Vector3(); var _outPos = new Laya.Vector3(); var scaleDelta = 0; function animate() { _position.x = Math.sin(scaleDelta += 0.01); layaMonkey3D.transform.position =...
来源: Laya_示例 发布时间: 20251130