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

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

1. socket大型项目回调 [ 100%]

...odule PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = 'heartbeat timeout'; private JS_WS_CLIENT_TYPE:string = 'js-websocket'; pr...

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

2. Laya.loader.load(xx) 当地址""的时候,会报错。 [ 91%]

...              }                     this.event(Event.PROGRESS, 0.3 + 1 / toloadPics.length * 0.6);                     return this._loadResourceFilter(Loader.IMAGE, URL.formatURL(toloadPics.pop()));                 }   ...

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

3. 微信小游戏中加载unity导出的场景报错the .lh file root type must be Scene [ 91%]

...  Utils3D._createNodeByJson(this,json,this,innerResouMap);     this.event("hierarchyloaded",[this]);     this.__loaded=true;   }   打了一个log,发现data[0]读取出来的结果是"{",也就是说data被按照字符串读取了,而不是数组。   /**     *结束加载,...

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

4. Button点击函数逻辑bug [ 90%]

...is.toggle === false && this._selected) return; if (e.type === Laya.Event.CLICK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state = Button.stateMap[e.type]); }上面逻辑当cli...

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

5. socket通讯返回数据 [ 90%]

...接 this.socket.connectByUrl("ws://localhost:8899"); this.socket.on(Laya.Event.OPEN, this, this.openHandler); this.socket.on(Laya.Event.MESSAGE, this, this.receiveHandler); this.socket.on(Laya.Event.CLOSE, this, this.closeHandler); this.socket.on(Laya.Event.ERROR, this, this.errorHandler); // this.s...

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

6. panel问题 [ 90%]

...,仔细研究了源码,发现问题出在事件派发上 截图来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报...

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

7. layabox加载fairygui发布的二进制文件报错 [ 89%]

...e { Loader.clearRes(url); console.warn("[error]Failed to load:",url); this.event(/*laya.events.Event.ERROR*/"error",url); } } if (this._failRes[url])this._failRes[url]=0; delete LoaderManager._resMap[url]; if (resInfo.originalUrl){ content=Loader.getRes(resInfo.originalUrl); } resInfo.event(/*laya.e...

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

8. 【简单跑酷--JS版】---Lv.6 终篇 [ 89%]

...is.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ ...

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

9. [LayaAirIDE3]2d相机打包后问题 [ 88%]

...     onAwake() {         this.createJoystick();         this.bindEvents();                 // 监听全局事件         Laya.stage.on("DIALOG_SHOW", this, this.disable);         Laya.stage.on("DIALOG_HIDE", this, this.enable);     }      onDestroy() {         // ...

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

10. Laya中Button等组件lose skin的问题 [ 88%]

...th(content);                 _$this._loaderCount || _$this.event(/*laya.events.Event.COMPLETE*/"complete");             });             }else {             var info=LoaderManager._resMap;             if (!info){             ...

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