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

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

101. 一个LayaAir moveout target 设计上的疑问? [ 79%]

...   sp[j + i * 10].pos(i * 60, j * 60);         sp[j + i * 10].on(Laya.Event.MOUSE_OVER, this, over);         sp[j + i * 10].on(Laya.Event.MOUSE_OUT, this, out);     } } function over(e) {     e.target.graphics.drawRect(0, 0, 50, 50, "red"); } function out(e) {     //正常大家可能...

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

102. 示例 骨骼动画换装 加不上点击事件 [ 79%]

.../mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); //mArmature.on(Event.LABEL, this, onEvent); mArmature.on(Event.STOPPED, this, completeHandler); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName(mSkinList[0]); play(); //changeSkin(); //Laya.timer.loop(1000, this, cha...

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

103. 调试按钮,IDE报错 [ 79%]

...-debug-core\out\src\chrome\chromeDebugAdapter.js:156:59)     at emitOne (events.js:90:13)     at Client.emit (events.js:182:7)     at Client.processMessage (c:\Program Files (x86)\laya\resources\app\extensions\laya-debug\node_modules\noice-json-rpc\lib\noice-json-rpc.js:64:18)     at Logging...

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

104. 浏览器失去焦点的时候能强制保持帧频吗? [ 79%]

... */ //*/强迫保持原本设定的FPS try { sound = new Sound(); sound.addEventListener(SampleDataEvent.SAMPLE_DATA,onWakeUp); channel = sound.play(); }catch(error:Error){}; //*/ } protected function onWakeUp(event:SampleDataEvent):void { event.data.position = event.data.length = 4096 * 4; } 这是...

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

105. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 79%]

...h(config); console.log(`Running 'rollup watcher'...`); let tS; watcher.on('event', (event) => { // event.code 会是下面其中一个: // START — 监听器正在启动(重启) // BUNDLE_START — 构建单个文件束 // BUNDLE_END — 完成文件束构建 // END — 完成所有文件...

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

106. 键盘事件回调参数错误 [ 79%]

...调参数错误 重现步骤: 1、绑定键盘事件    Laya.stage.on(Event.KEY_DOWN, this, this.onStartMove); 2、打印 回调事件 onStartMove的 event参数,即可得到上图 版本: LayaAir 3.0.5 希望流程: 返回 正常的键盘 keyCode,如示例文档 附件 : --> 2023-10-1...

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

107. Chrome和layaAir调试,大部分点击事件没有反应了 [ 79%]

...是引擎的bug。 Chrome控制台有警告,描述:Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 但是好像之前也有,所以...

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

108. 用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 [ 78%]

用Socket连接服务器,服务端显示已经有登录,但Event.OPEN没有触发 package tcp {     import laya.events.Event;     import laya.net.Socket;     import laya.utils.Byte;               public class CConnector extends Socket     {         protected ...

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

109. [LayaAirIDE3]xcode切入切出声音不播放 [ 78%]

...切入切出,导致背景声音不播放问题。  Laya.stage.on(Laya.Event.BLUR, this, this.onBlur); Laya.stage.on(Laya.Event.FOCUS, this, this.onFocus);  private onBlur() {         // 暂停所有需要停止的逻辑         console.log("onBlur");         SoundManager.Instance.pau...

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

110. layaair2-cmd无法编译 [ 78%]

...  layaair2-cmd compile报错   [15:46:08] Starting 'compile'... stderr: events.js:167       throw er; // Unhandled 'error' event       ^ SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' exit:1   但是我是新创建的代码,一行代码都没改动 附件 ...

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