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

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

91. 照相机-3D空间转2D空间 [ 68%]

...ge.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 = _posi...

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

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

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

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

93. js继承模式 [ 68%]

...otype.init = function() { Laya.stage.addChild(this); this.bg(); Laya.timer.frameLoop(1, this, this.loop); }; Class.prototype.bg = function() { for (var i = 0; i < 2; i++) { this.img[i] = new Laya.Image('background.png'); this.addChild(this.img[i]); } this.img[0].y = 0; this.img[1].y = -852; } Cla...

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

94. 灯光-点光 [ 68%]

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

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

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

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

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

96. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 67%]

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

97. 材质-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

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

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

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

99. 切换后台时,引擎如何判断是否停止定时器? [ 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

100. laya.d3.core.light.LightSprite_API3.0 [ 66%]

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