• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,700 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0063 秒)

201. 老虎转轮的问题 [ 73%]

...虎机,现在是用list来做的,目前转动的方法方法: Laya.timer.frameLoop循环执行一个方法,不知道有没更优雅的方法呀 //开始转动 function onBtnClick(){ Laya.timer.frameLoop(1, this, scroller); } //转动轮子方法 var time = 30, //默认转动间隔 ih = 0, //...

来源: Laya_社区 发布时间: 20180326

202. 能不能通过缓动动画画一个圆形 [ 73%]

... cuixueying 赞同来自: 缓动画圆有点麻烦吧,建议你直接用timer计时器,绘制360度的扇形,在timer的回调里控制扇形的角度,可以做到动态绘制圆型! 2017-08-25 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登...

来源: Laya_社区 发布时间: 20170825

203. 重发问题: 点击页面会导致setTimeout setInterval 延迟执行 [ 73%]

...,是会卡顿的,应该用requestAnimationFrame。 Laya本身带Laya.timer.loop和Laya.timer.frameLoop,前一个基于时间,后一个基于帧。按照楼主的需求,应该基于时间,但正因为loop是基于时间的,所以类似setInterval,虽然不会卡顿,但是会不流...

来源: Laya_社区 发布时间: 20170323

204. 没有人尝试使用3d物理引擎么 [ 73%]

...试了通过创建cannon的物理场景和刚体几何体对象,由laya.timer驱动cannon解算物理变化,然后不断把cannon世界里的物体变化实时赋值给laya场景里的物体,但是感觉效率有点低啊……   比如: package { import laya.d3.core.BaseCamera; import laya...

来源: Laya_社区 发布时间: 20170331

205. laya.d3.core.BaseCamera_API3.0 [ 73%]

...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

206. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

... 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

207. laya.d3.core.light.SpotLight_API3.0 [ 73%]

...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

208. 关于定时器嵌套问题 [ 73%]

关于定时器嵌套问题 假设有一个定时器laya.timer.loop(1000,this,update),在update方法中包含另一个定时器laya.timer.loop(1000,this,show),这种情况两者会互相产生干扰吗?还是各算各的时间? 2018-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

来源: Laya_社区 发布时间: 20180405

209. laya.d3.core.RenderableSprite3D_API3.0 [ 73%]

...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

210. laya.map.TileAniSprite [ 73%]

...被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer。Node transform : Matrix 对象的矩阵信息。通过设置矩阵可以实现节点旋转,缩放,位移效果。 矩阵更多信息请参考 Matrix Sprite viewport : ...

来源: laya_api 发布时间: 20170929