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

大约有 465 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0049 秒)

91. 如何让音效间隔一定时间播放一遍? [ 68%]

...音效添加一个计时器,间隔一段时间后再播放,Laya.timer.frameLoop 2017-01-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 kasl123 相关问题 IOS系统内嵌H5游戏,退到后台,等几秒返回音乐音效全无...

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

92. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 68%]

...putChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild r...

来源: Laya3.0_api 发布时间: 20231102

93. 定时重复执行 [ 68%]

...函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? 关闭指定定时器timer 注册函数里面 事件侦听函数的执行域 的详解 怎样跨页面执行脚本命令? 问题状态 最新活动: 2018-07-18 15:40 浏览: 1153 关注: 2 人 152*****215...

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

94. 材质-BlinnPhong-漫反射贴图 [ 67%]

...men/texture/earth.png"); earth2.meshRender.material = material; Laya.timer.frameLoop(1, this, function () { earth1.transform.rotate(this.rotation, false); earth2.transform.rotate(this.rotation, false); });class BlinnPhong_DiffuseMap { private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); co...

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

95. 切换后台时,引擎如何判断是否停止定时器? [ 67%]

...s.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{         console.log("delta:",Laya.timer.delta);     }      private onFocus(): void {         console.log("onFocus:")...

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

96. 摄像机旋转问题 [ 67%]

...function startRound():void         {             Laya.timer.frameLoop(1, this, function():void{                 camare.transform.rotate(_rotateC);             });         } 这个并不是绕物体旋转的 2017-06-07 添加评论 免费帖 --> 分享 微博...

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

97. laya.d3.core.light.LightSprite_API3.0 [ 67%]

...bleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild r...

来源: Laya3.0_api 发布时间: 20231115

98. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 66%]

...动 不太适合我们调试代码 我们打开Floor.js 找到 Laya.timer.frameLoop(1, this, this.onLoop); 把这一行代码先给注释了 接着 我们先理一理自己的思路 我们要做玩家踩在地板上 那就要用到碰撞检测 上图中紫色的小点点是 两个物体的 坐标起...

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

99. 灯光-聚光 [ 66%]

...on = new Laya.Quaternion(); var _position = new Laya.Vector3(); Laya.timer.frameLoop(1, null, function () { Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion); Laya.Vector3.transformQuat(spotLight.transform.position, _quaternion, _position); spotLight.transform.position = _position; va...

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

100. 分享贝塞尔曲线运动 [ 66%]

分享贝塞尔曲线运动 Laya.timer.frameLoop(1, this, this.move, [0.0003])//主控制  0.0003自己调整 private testSp:Laya.Sprite;//移动物体 private counts=0; //移动        自己做条件判断停止frameLoop private move(arg) { var t = arg * this.counts var point = this.bezier(...

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