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

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

61. 灯光-点光 [ 67%]

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

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

62. 骨骼动画-换装 [ 67%]

...STOPPED, this, this.completeHandler); this.play(); this.changeSkin(); Laya.timer.loop(1000, this, this.changeSkin); } changeSkin() { mCurrSkinIndex++; let skinLength = mSkinList.length; if (mCurrSkinIndex >= skinLength) { mCurrSkinIndex = 0; } mArmature.showSkinByName(mSkinList[mCurrSkinIndex]); } c...

来源: Laya2.0_示例 发布时间: 20251130

63. SCALE_FIXED_WIDTH适配屏幕的问题 [ 66%]

...的颜色问题 关于逻辑贞更新间隔机制、时间和其他一些Timer相关的问题 graphics alpha 问题 event自定义事件的问题 问题状态 最新活动: 2019-05-11 16:44 浏览: 973 关注: 2 人

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

64. 如何获得特效的宽高 [ 66%]

...7-06-28 0 1 分享 微博 QZONE 微信 cuixueying 赞同来自: 你用Laya.timer.once加个延迟看下呢? 2017-06-28 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 z298959 相关问题 缓动Tween能用在3D物体或者特效上面...

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

65. laya.utils.PerfHUD [ 66%]

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

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

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

...hreeDimen/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, ...

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

67. 2D物理-仿生机器人 [ 66%]

...cleBody.linearVelocity = { x: velocityX * 5, y: velocityY * 5 }; Laya.Laya.timer.frameOnce(120, this, function () { newBall.destroy(); }); }); let label = this.label = Laya.Laya.stage.addChild(new Laya.Label("双击屏幕,仿生机器人向相反方向运动\n单击产生新的小球刚体")); lab...

来源: Laya2.0_示例 发布时间: 20251130

68. 2D物理-复合碰撞器 [ 66%]

...oint.enableMotor = true; box.addComponentIntance(revoluteJoint); Laya.Laya.timer.frameLoop(1, this, this.addMiniBox); } addMiniBox() { let box = this.box; if (this.count >= this.totalBox) { return; } let sp = new Laya.Sprite(); Laya.Laya.stage.addChild(sp); sp.x = box.x; sp.y = box.y; sp.addComponen...

来源: Laya2.0_示例 发布时间: 20251130

69. laya.particle.Particle2D [ 66%]

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

来源: laya_api 发布时间: 20170929

70. laya.display.FrameAnimation [ 66%]

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

来源: laya_api 发布时间: 20170929