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

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

151. 资源压缩成zip后加载的问题 [ 82%]

... 赞同来自: 高级黑科技来了: // 解压获得文件内容 let zipData = {"res/aaa.scene":{scene:"xxxx"}, "res/bbb.json":{test:[1,2,3,4,5]}}; // 构造数据 let data = {json:{}, text:{}}; // 默认只支持json和text。其他要另外处理。 data.json["res/aaa.scene"] = zipData["res/aaa...

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

152. 输入设备-地图 [ 82%]

...mp; } // 将原始坐标转换为百度坐标 function convertToBaiduCoord(data) { if (data.status == 0) { var position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } function onError(e) { if (e.code == Geolocation.TIMEOUT) alert("...

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

153. XMLRequest在layaNative下请求崩溃,请求官方协助! [ 82%]

...yaNative下请求崩溃,请求官方协助!  public post(url: string, data: any, callback: (this: void, data: JSON) => void): void {         let hr = new Laya.HttpRequest();         hr.once(Laya.Event.COMPLETE, this, (e: any): void => {             callback(JSON.parse(hr.dat...

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

154. 电脑上跟手机上运行不一样(手机上判断是进不去的,但我打印出来是满足条件的,必现) [ 82%]

...('players'))             {                 let data = this._tableInfo;                 alert(param.players[0].uid +' '+App.uid +' '+param.players[0].gold);                 for (var key in data.players) {                   ...

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

155. request failed status:0 text: IOS HttpRequest [ 82%]

request failed status:0 text: IOS HttpRequest var data = { rechargeId:"1", consumerId:"533", } alert(JSON.stringify(data)); hr = new HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestErr...

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

156. Laya构建App后AndroidStudio中用真机调试模式下运行,App打开了,但是不能打开游戏的问题。 [ 82%]

...com.ReleaseTest.Four E/LayaConch5: plugin-----------------EngineStart() = /data/data/com.ReleaseTest.Four//LayaCache/localstorage 06-20 19:10:18.328 5371-5371/com.ReleaseTest.Four W/art: Attempt to remove local handle scope entry from IRT, ignoring 06-20 19:10:18.329 5371-5371/com.ReleaseTest.Four E...

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

157. 多线程Worker · LayaAir3.3 · 引擎文档 · LAYABOX [ 82%]

...象;它将包含于传递给 onmessage 处理函数的事件对象中的 data 字段内。你可以传递任意值或是经过结构化拷贝算法处理过的 JavaScript 对象,即可以包含循环引用。 transferList 一个可选的对象数组,用于转让它们的所有权。如果一...

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

158. 播放背景音乐报错,引发闪退 [ 82%]

...ir.game.utility.LayaAudioMusic,methodName:playBackgroundMusic,params: ["/data/user/0/com.mylafe.game.handsomecat//LayaCache//appCache/602822a8/9ddea156_dreams.mp3",0,0] 12-26 14:27:10.059 1552-1616/com.mylafe.game.handsomecat E/LayaBox: >>>>>>>>>>>>before 12-26 ...

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

159. workerLoader问题 [ 81%]

...er传过来的数据函数 (this as any as WorkerLoader).workerMessage(evt.data); } } 回调函数this指向有问题 附件 : --> 2019-08-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_Aaron 赞同来自:...

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

160. 输入设备-地图 [ 81%]

...p.timestamp; } // 将原始坐标转换为百度坐标 convertToBaiduCoord(data) { if (data.status == 0) { let position = data.points[0]; // 设置标注物位置 marker.setPosition(position); map.panTo(position); map.setZoom(17); } } onError(e) { const Geolocation = Laya.Geolocation; if (e.code == ...

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