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

大约有 518 项符合查询结果, 库内数据总量为 30,902 项。 (搜索耗时: 0.0049 秒)

41. Laya.MiniAdpter.downLoadFile缓存的文件无法读取的问题 [ 81%]

...存二进制文件,逻辑如下:   public Request(url:string):void { console.log("url: " + url); if (Laya.Browser.onMiniGame) { var args = {url:url, handler:null}; var handler = Laya.Handler.create(this, this.OnDownloadFileInWxOk, [args], false); args.handler = handler; Laya.MiniAdpter.downLoad...

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

42. 闪屏,报错信息如下 [ 80%]

...rom previous GL command 02-05 16:53:07.013 24700-24700/? I/chromium: [INFO:CONSOLE(0)] "[.Offscreen-For-WebGL-0x7c8dec00]GL ERROR :0x0505 : glTexImage2D: <- error from previous GL command", source: http://xx.xxx.xxxx.pk/xn/x/.............html (0) 02-05 16:53:07.825 24700-24824/? E/chromium: [ERRO...

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

43. 除了用“+"拼接,如何创建格式化字符串? [ 80%]

... // ES6: var h = 'Hello'; var w = 'World'; var helloWorld = `${h} ${w}`; console.log(helloWorld); // 用在console console.log("%s%d", "one plus one equals ", 2) 2017-10-26 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jxfcwys 相关问...

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

44. layaair获取xml信息出错 [ 80%]

...  代码: var configData:XmlDom = Loader.getRes(config_PATH) as XmlDom; console.log(configData); console.log(configData.attributes); console.log(configData.childNodes);   xml如下: <root>     <config>          <PATH>../h5/</PAHT>     </config> </r...

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

45. 横竖屏切换,此引擎渲染有BUG [ 80%]

...= Laya.Browser.clientWidth; this.oldheight= Laya.Browser.clientHeight; }  console.log("设置横屏" + isFirst); if (isFirst) Laya3D.init(1280, 720, true); else Laya.stage.width = 1280; Laya.stage.height = 720; //Laya.stage.scaleMode = Laya.Stage.SCALE_FIXED_WIDTH; Laya.stage.scaleMode = Laya.Stage...

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

46. 怎么获取对象的坐标 [ 80%]

...這樣:   Vector3 {elements: Float32Array[3]}   改成這樣:    console.log( camera.transform.position.x ); console.log( camera.transform.position.y ); console.log( camera.transform.position.z );   另外;你的 position 打錯,不是 postion 是 position。   2017-08-08 2 0 分享...

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

47. async bug 导出小游戏 [ 79%]

...rmal; share.imageUrl = ShareImgUrl; let a = await share.shareAppMessage(); console.log(a) }   转换后代码   onShareClick() { // return __awaiter(this, void 0, void 0, function* () { // let share = SDKCenter.getShare(); // share.title = ShareNormal; // share.imageUrl = ShareImgUrl; // let a = y...

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

48. socket与node服务端连不上?按照官方案例 [ 79%]

... this, errorHandler); function openHandler(event){ //正确建立连接; console.log("链接"); } function receiveHandler(msg){ ///接收到数据触发函数 console.log("接受"); } function closeHandler(e){ //关闭事件 console.log("关闭"); } function errorHandler(e){ //连接出错 console...

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

49. 小米登录失败 [ 79%]

...ow["qg"].login({ success: function (res) { var data = JSON.stringify(res); console.log("OPPO登录:" + data); callBack(res); }, fail: function (res) { LogicManager.instance.toLoginSucc(); console.log("登陆失败:" + JSON.stringify(res)); } });  登陆失败:{"code":7605,"msg":"没有 数据","d...

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

50. 在微信小游戏真机wx.onShow和wx.onHide中的currTimer的问题 [ 79%]

...er.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两个居...

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