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

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

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

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

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

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

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

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