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

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

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) 当地址""的时候,会报错。 [ 94%]

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

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

3. Button点击函数逻辑bug [ 93%]

...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

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

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

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

5. Laya中Button等组件lose skin的问题 [ 92%]

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

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

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

...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

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

...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. 打飞机点开始游戏加载飞机动画不出来,点重新开始,才出来,新手求助! [ 91%]

...出来 function onLoaded() { start = new GameStartUI(); start.btn_start.on(Event.MOUSE_UP,this,gameInit) Laya.stage.addChild(start); } function gameInit() { map = new GameBgUI(); Laya.stage.addChild(map); play = new GamPlayUI(); Laya.stage.addChild(play); hero = new Hero("hero", 25) hero.pos(100,200...

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

9. panel问题 [ 90%]

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

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

10. 向官方反映1.75引擎库后 事件执行 发生的bug [ 90%]

...      *执行事件处理。         */         __proto.runEvent=function(){             var len=this._eventList.length;             if (!len)return;             var _this=this;             var i=0;             var localevnetList = this._e...

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