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

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

101. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 67%]

...5 18:47 @暮黎: Laya.Tween.to(mask, { scaleX: 0 }, that.data.effectTime * 1000,null); Laya.Tween.to( [rect, mask], { width: 0 }, that.data.effectTime * 1000, null, Laya.Handler.create(this, function() { isSceneAnimMask.destroy(); }) ); 我是这样写的,就同步了 Laya_Aaron • 2018-05-24 17:30...

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

102. 材质-BlinnPhong-高光贴图 [ 67%]

...w Laya.Scene()); var camera = (this.scene.addChild(new Laya.Camera(0, 0.1, 1000))); camera.transform.translate(new Laya.Vector3(0, 0.7, 1.3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.addComponent(CameraMoveScript); var directionLight = this.scene.addChild(new Laya.D...

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

103. 2D自由形态光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...画 this.lightComp.lightRotation += this.rotateSpeed * Laya.timer.delta / 1000; // 实现灯光缩放动画 this.scaleTime += Laya.timer.delta / 1000 * this.scaleSpeed; const scale = 1 + Math.sin(this.scaleTime) * 0.5; // 增加缩放变化幅度 this.lightComp.lightScale.setValue(scale, scale); } }...

来源: Laya3.0_文档 发布时间: 20251010

104. 2D精灵光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...ya.Mesh2DRender); mesh2Drender.sharedMesh = this.generateRectVerticesAndUV(1000, 1000); mesh2Drender.lightReceive = true; } // 生成一个矩形 private generateRectVerticesAndUV(width: number, height: number): Laya.Mesh2D { const vertices = new Float32Array(4 * 5); const indices = new Uint16Array(...

来源: Laya3.0_文档 发布时间: 20251010

105. 请问ts版本下的Combobox组件,下拉框层级问题,是不打算改了吗? [ 65%]

...显示不出来。 查看了源代码,发现自动Dialog的zorder变成1000,以及另外一个组件zorder变成1100以后,combobox的list组件zorder如果不强制修改成1100以上,将无法显示,因为层级问题。   这种源代码的问题,本来想着官方会在新版本改...

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

106. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 65%]

...nt); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce...

来源: Laya2.0_文档 发布时间: 20210715

107. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 65%]

...nt); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce...

来源: Laya2.0_文档 发布时间: 20210715

108. 物理系统之FixedConstraint(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 64%]

...nt); //设置打破约束的力的阈值 this.fixedConstraint.breakForce = 1000; } override public function onUpdate() { if(this.fixedConstraint) { var mass = this.fixedConstraint.connectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fix...

来源: Laya2.0_文档 发布时间: 20210714

109. 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 [ 64%]

....shuchu();//输出这个组件num,结果为2,是LayaSample.bb的num }, 1000);已经排除了定时器的原因 2018-07-29 添加评论 已悬赏20元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 15 个回复 日新月异 赞同来自: Solomon...

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

110. 如何主动关闭Dialog界面 [ 64%]

... 放着不动,而且是在没逻辑的主界面,stat里的sprite数量1000个/s的速度上涨 layaair怎么实现界面跳转 问题状态 最新活动: 2018-11-02 17:21 浏览: 696 关注: 1 人

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