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

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

1. 二次开发 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...right reserved,powered by LayaAir Engine更新时间: 2025-04-22 14:18:35 img{cursor:pointer}

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

2. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 90%]

...val = 1000; this.counter.x = (Laya.stage.width - this.counter.width) / 2 - 35; this.counter.y = (Laya.stage.height - this.counter.height) / 2 - 40; this.owner.addChild(this.counter); } private showTotalSeconds(): void { var clip: Laya.Clip = new Laya.Clip(this.clipSkin, 10, 1); clip.index = clip.cli...

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

3. 使用3D UI · LayaAir3.3 · 引擎文档 · LAYABOX [ 81%]

...; } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y", -30).duration(1000); } } 上述代码中的Main.instance.animator.play("Stun");表示改变动画状态,目的是在...

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

4. 基础文本 · LayaAir3.3 · 引擎文档 · LAYABOX [ 59%]

...向AS/JS/TS开发者提供HTML5开发技术方案!"; this.txt.fontSize = 35; this.txt.size(400,150); this.txt.borderColor = "#fa1515"; this.txt.overflow = "scroll"; this.txt.on(Laya.Event.MOUSE_DOWN, this, this.startScrollText); } /* 开始滚动文本 */ startScrollText() { prevX = this.txt.mouse...

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

5. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

....SpotLightCom); spotLight.transform.localPosition = new Vector3(0.0, 9.0, -35.0); spotLight.transform.localRotationEuler = new Vector3(-15.0, 180.0, 0.0); spotLightCom.color.setValue(Math.random(), Math.random(), Math.random(), 1); spotLightCom.range = 50; spotLightCom.intensity = 15; spotLightCom.s...

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