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

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

541. 【音效BUG】在游戏失焦后再次返回游戏导致音效播放异常的问题与解决方案 [ 66%]

...是否因为失焦而自动暂停,监听游戏失焦事件:Laya.stage.on(Laya.Event.BLUR,this,this.method); 在失焦的回调里设置: Laya.SoundManager.musicMuted = true; Laya.SoundManager.stopMusic(); 将正在播放的音乐路径存为成员变量;   2.监听游戏获取焦点事件...

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

542. laya.media.VideoTexture_API3.0 [ 66%]

...ch Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/media/VideoTexture" VideoTexture Class VideoTexture VideoTexture 多媒体纹理 Hierarchy BaseTexture VideoTexture Index Constructors c...

来源: Laya3.0_api 发布时间: 20231115

543. UI-Clip [ 65%]

...TypeScript三种开发语言、LayaAirIDE让项目开发更高效。(function() { var Stage = Laya.Stage; var Button = Laya.Button; var Clip = Laya.Clip; var Image = Laya.Image; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var buttonSkin = "../../res/ui/button-7.png"; var clipSkin = "../../re...

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

544. Sprite-新手引导 [ 65%]

...: 583, radius:110, tip:"res/guide/help3.png", tipx:900, tipy:300 } ], gameContainer, guideContainer, maskArea, interactionArea, hitArea, tipContainer, guideStep = 0; class Sprite_Guide { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init...

来源: Laya2.0_示例 发布时间: 20251209

545. WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header [ 65%]

WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header 一开始连接正常,密集发送消息到服务器后,就会给服务器程序发送关闭连接的信息。WebSocket connection to 'ws://192.168.0.8:8102/' failed: Invalid frame header WebSocket connection to 'ws:/...

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

546. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 65%]

分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! 以下是JS的写法,AS/TS思路一样,请根据自己的需求进行修改即可!var Loader = laya.net.Loader; var Handler = laya.utils.Handler; var Event = laya.events.Event; // 创建TestPageUI的子类 function...

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

547. 这样的panel请问如何实现比较好? [ 65%]

...? 附件 : --> 2018-08-10 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 谢春 赞同来自: 实现步骤: 1、定义一个Item,界面分两层(可用两个Sprite进行划分) class Item extends ui.item...

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

548. 音频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

..._sound.play(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...

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

549. laya.d3.core.Sprite3D_API3.0 [ 65%]

...ch Preparing search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Sprite3D" Sprite3D Class Sprite3D Sprite3D 类用于实现3D精灵。 Hierarchy Node Sprite3D RenderableSprite3D BaseCamera Ligh...

来源: Laya3.0_api 发布时间: 20231115

550. 请问在layaIDE里,怎么调用微信小程序API [ 65%]

...译也不过啊。 2018-04-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 13 个回复 雨送黄昏 赞同来自: 晖 、龙印 、xueLayaBox 不得不说laya的文档写得是真的烂 看了他们提供的文档经常只...

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