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

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

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

...ata);         this._customParse=false;         this.event("progress",1);         this.event("complete",(this.data instanceof Array)? [this.data] :this.data);     } 上面这里直接判断失败,走了false 具体见附件。   望解决 附件 : --> WX3D.rar laya3D工...

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

52. 网络通信 · LayaAir3文档 · LAYABOX [ 53%]

...,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度...

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

53. HTTP以POST发送Byte字节流,服务器无法解析 [ 53%]

...) { console.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeInt32(9...

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

54. http无响应 [ 52%]

...dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&password=...

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

55. 手机调试时http请求错误,返回Request failed Status:0 [ 51%]

... let hr = new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR...

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

56. 请引擎开发人员不要在用这种写法了 [ 46%]

...的代码触发了相关bug。 shiyang • 2020-09-09 16:39 你把img换成progress shiyang • 2020-09-09 16:44 laya.ui.js:3741 Uncaught TypeError: Cannot set property 'skin' of null at ProgressBar._skinLoaded (laya.ui.js:3741) at EventHandler.runWith (laya.core.js:998) at ResInfo.event (laya.core....

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

57. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 45%]

...ew Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传输失...

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

58. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 43%]

...r.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且也有我们打印...

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

59. vivo小游戏分包指南(TypeScript-小游戏适配文档-vivo小游戏) [ 41%]

...获取分包加载状态。示例代码如下: ```javascript loadTaskA.onProgressUpdate(res => { console.log('sub1Name 下载进度', res.progress) console.log('sub1Name 已经下载的数据长度', res.totalBytesWritten) console.log('sub1Name 预期需要下载的数据总长度', res.totalBytes...

来源: Laya2.0_文档 发布时间: 20210714

60. [LayaAirIDE3]xcode切入切出声音不播放 [ 38%]

...       const elapsed = Date.now() - startTime;             const progress = Math.min(elapsed / duration, 1);              channel.volume = initialVolume +                 (targetVolume - initialVolume) * progress;              if (progress === 1) {              ...

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