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

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

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

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

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

202. laya.d3.core.light.DirectionLight_API3.0 [ 73%]

...ne shadowNormalBias shadowResolution shadowStrength shadowTwoCascadeSplits 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

203. 显卡驱动停止响应,且大概率蓝屏 [ 73%]

...折叠 要回复问题请先登录 发起人 15068753667 相关问题 Laya.timer.loop()如何停止 Laya拖尾怎么停止或清除,比如要瞬移角色的时候停止。伤脑壳~~!! 求教: soundManager如何停止正在播放的背景音乐 在编辑器中做好的动画,应该如何...

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

204. laya.map.TileAniSprite [ 73%]

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

来源: laya_api 发布时间: 20170929

205. 性能测试-虫子(慎入) [ 73%]

...d() { maggotTexture = Laya.loader.getRes(texturePath); initMaggots(); Laya.timer.frameLoop(1, this, animate); } function initMaggots() { var maggotContainer; for (var i = 0; i wb.x + wb.width) x -= wb.width; if (y wb.y + wb.height) y -= wb.height; maggot.pos(x, y); } tick += 0.1; } })();module laya ...

来源: Laya_示例 发布时间: 20260106

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

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

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

207. 如何监测进入了静默模式?又如何知道唤醒了呢? [ 73%]

...又如何知道唤醒了呢? 浏览器切后台以后,会导致一些 timer相关的逻辑出现问题 2017-07-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 浏览器是...

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

208. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 73%]

...Game.GetServerTime() : startTime_ ); this.endTime = startTime + time; Laya.timer.loop(1,this,ef); isCd = true; } public function stop():void { this.set360(-1); Laya.timer.clear(this,ef); isCd = false; } } }   2017-11-24 1 2 分享 微博 QZONE 微信 wudi199553 赞同来自: 计时器属于简单...

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

209. laya.d3.core.BaseCamera [ 73%]

...显示在屏幕之前调用,一般用于延迟计算数据。 Node clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node clone():Node 克隆。 Sprite3D contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node  de...

来源: Laya2.0_api 发布时间: 20190513

210. UI-ProgressBar [ 73%]

...dler = new Handler(this, onChange); Laya.stage.addChild(progressBar); Laya.timer.loop(100, this, changeValue); } function changeValue() { if (progressBar.value >= 1) progressBar.value = 0; progressBar.value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"...

来源: Laya_示例 发布时间: 20260106