大约有 1,700 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1359) Laya3.0_api(81) Laya2.0_api(74) laya_api(69) Laya2.0_文档(43) Laya_示例(36) Laya2.0_示例(20) Laya3.0_文档(18)
...虎机,现在是用list来做的,目前转动的方法方法: Laya.timer.frameLoop循环执行一个方法,不知道有没更优雅的方法呀 //开始转动 function onBtnClick(){ Laya.timer.frameLoop(1, this, scroller); } //转动轮子方法 var time = 30, //默认转动间隔 ih = 0, //...
来源: Laya_社区 发布时间: 20180326
... cuixueying 赞同来自: 缓动画圆有点麻烦吧,建议你直接用timer计时器,绘制360度的扇形,在timer的回调里控制扇形的角度,可以做到动态绘制圆型! 2017-08-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...
来源: Laya_社区 发布时间: 20170825
...,是会卡顿的,应该用requestAnimationFrame。 Laya本身带Laya.timer.loop和Laya.timer.frameLoop,前一个基于时间,后一个基于帧。按照楼主的需求,应该基于时间,但正因为loop是基于时间的,所以类似setInterval,虽然不会卡顿,但是会不流...
来源: Laya_社区 发布时间: 20170323
...试了通过创建cannon的物理场景和刚体几何体对象,由laya.timer驱动cannon解算物理变化,然后不断把cannon世界里的物体变化实时赋值给laya场景里的物体,但是感觉效率有点低啊…… 比如: package { import laya.d3.core.BaseCamera; import laya...
来源: Laya_社区 发布时间: 20170331
...hographic orthographicVerticalSize parent renderingOrder scene skyRenderer timer transform url Methods _initialize _processActive addAllLayers addChild addChildAt addChildren addComponent addComponentInstance addLayer bubbleEvent callLater clearTimer clone contains destroy destroyChildren event fram...
来源: Laya3.0_api 发布时间: 20231115
... 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
...shadowNearPlane shadowNormalBias shadowResolution shadowStrength spotAngle timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChi...
来源: Laya3.0_api 发布时间: 20231115
关于定时器嵌套问题 假设有一个定时器laya.timer.loop(1000,this,update),在update方法中包含另一个定时器laya.timer.loop(1000,this,show),这种情况两者会互相产生干扰吗?还是各算各的时间? 2018-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180405
...estroyed displayedInStage hideFlags id is3D layer numChildren parent scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChi...
来源: Laya3.0_api 发布时间: 20231115
...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matrix Sprite viewport : ...
来源: laya_api 发布时间: 20170929