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

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

1. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 100%]

...,调用completeHandler继续播放下一个动画 this.mArmature.on(Laya.Event.STOPPED, this, this.completeHandler); this.play(); }); } private completeHandler(): void { this.play(); } //播放骨骼动画 private play(): void { //每次到下一个动画 this.mCurrIndex++; if (this.mCurrIndex &gt...

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

2. 音频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 95%]

...lay(0); //失去舞台焦点(切出游戏)的处理 Laya.stage.on(Laya.Event.BLUR, this, () => { _sound.stop(); }); //获得舞台焦点(切回游戏)的处理 Laya.stage.on(Laya.Event.FOCUS, this, () => { _sound.play(0); }); …… Copyright ©Layabox 2025 all right reserved,powered...

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

3. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 73%]

... 记录当前皮肤状态 //播放停止后执行逻辑 this.owner.on(Laya.Event.STOPPED, this, () => { // 通过三元运算符切换皮肤名称 currentSkin = currentSkin === "full-skins/girl" ? "full-skins/girl-blue-cape" : "full-skins/girl"; this.spine.skinName = currentSkin; this.spine.play(...

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