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

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

181. 教你微信小游戏使用服务端gzip数据。 [ 53%]

...直接百度,npm下载就可以了 然后 //暴露一下 window.Pako = require('./pako_inflate.min.js'); wx.request({   url: '请求地址',   responseType: 'arraybuffer',    success(res) {     console.log(fromCharCode(Pako.inflate(new Uint8Array(res.data))));   } }); //处理中文 functio...

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

182. 为什么小游戏的发布非要把所有js打包到一个js里? [ 53%]

...到的js都打包在一起, 分开的js文件,在微信的game.js里写require("xxx.js")就可以了 2018-05-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: 发布后的js是有一...

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

183. 火狐浏览器上webgl异常 [ 52%]

...ine%20297%20%3E%20eval:4:30925 Error: WebGL: texSubImage2D: This operation requires zeroing texture data. This is slow. 如题 这可能是什么引起的? 2017-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回...

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

184. laya转小游戏后小游戏物理引擎Matter.js找不到 [ 52%]

...自: 在小游戏的game.js内,引用code.js前加一段 window.Matter = require("XX路径/matter.js"); 固然可以解决问题,但还需要手动维护。不建议这样操作。   这个问题是小游戏的window域引起的,后面版本的引擎层会直接解决,当前我上传一个m...

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

185. 怎么给从模型生成的地形TerrainMaterial材质??? [ 52%]

...: 'splatAlpha' : undeclared identifier ERROR: 0:285: 'a' : field selection requires structure or vector on left hand side 2017-06-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: 转成m...

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

186. the server responded with a status of 404 (Not Found) [ 52%]

...s/@types/node/base.d.ts' not found. ide2.6.0beta编译报错:This syntax requires an imported helper but module 'tslib' cannot be found Swift中接入其他都正常,但是在你们的conchConfig中,报错'string' file not found fatal error: 'string' file not found 2.0动效模板,报错 can...

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

187. dcc下载超时 [ 52%]

...lsParamSize: unknow param 0x00008256 07-04 20:55:27.510: W/cr_media(7884): Requires BLUETOOTH permission 07-04 20:55:27.542: I/cr_DRP(7884): No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp 07-04 20:55:27.587: W/cr_AwContents(7884): onDetachedFromWindow ...

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

188. layaair2-cmd compile 有bug [ 52%]

...layaair2-cmd/node_modules/natives/index.js:143:24)     at Object.req [as require] (/usr/local/lib/node_modules/layaair2-cmd/node_modules/natives/index.js:55:10)     at Object.<anonymous> (/usr/local/lib/node_modules/layaair2-cmd/node_modules/graceful-fs/fs.js:1:37)     at Module._compile...

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

189. 引入Puremvc.js,编译没问题,运行时报错查不到 [ 51%]

...c.js"></script> 其他版本的,在game.js加入 window.puremvc=require("libs/puremvc.js"); 注意,要在引入index.js之前。 2019-05-05 0 0 分享 微博 QZONE 微信 cans 赞同来自: 以上问题已经自行解决了,那是因为puremvc官方提供的.js内部的头部是这样...

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

190. laya IDE和微信开发工具中都能正常加载xml,可一到手机就显示invalid url [ 51%]

...示 request:fail invalid url "res/config/info.xml" 而且window.Parser = require("./js/dom_parser");和js那个文件包都添加了 附件 : --> 2018-05-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaro...

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