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

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

1. 事件管理 · LayaAir3.0文档 · LAYABOX [ 100%]

...图2-1,事件类型请参考API文档。 (图2-1) 例如 Laya.Event.CLICK:string = "click"。CLICK 静态属性用于定义事件对象的type类型属性值为单击事件。这个事件是由鼠标点击触发后系统派发的事件,开发者也可以调用event()方法派发这些事件...

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

2. 使用3DUI · LayaAir3.0文档 · LAYABOX [ 47%]

... this.bar.value = 1; this.value.visible = false; Laya.stage.on( Laya.Event.CLICK, this, this.onHurt ); } onHurt(): void { this.bar.value = this.bar.value - 0.1; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("Stun"); Laya.Tween.to( this.value, { y : -20 }, 500, null, Laya....

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