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

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

51. 小游戏合并JS后的问题 [ 72%]

...那边将matter.js文件导入 ,在game.js里面加入 window.Matter = require("./matter.js"); 这样程序里面可以获取到引用并正常使用,但有些手机不支持这样写会卡死在微信初始化小游戏这地方(测试过这样这地方这样导入JS就百分百卡死 如果...

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

52. layaair2-cmd安装报错 [ 72%]

...ction.Module._load (internal/modules/cjs/loader.js:562:25)     at Module.require (internal/modules/cjs/loader.js:690:17)     at require (internal/modules/cjs/helpers.js:25:18)     at Object.<anonymous> (E:\cyh5\code\gzlaya\testnew2\.laya\publish.js:25:15)     at Module._compile (intern...

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

53. laya开发支持npm install安装的node_modules吗 [ 72%]

...博 QZONE 微信 Laya_Aaron 赞同来自: 这没有例子,是否能直接require 是看你安装的时候是不是 配了全局的环境变量, 如果不是,你可以改这个文件加入路径,或者把下载的module放到我们默认的node_module路径里。 2018-03-14 0 0 分享 微博 ...

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

54. 打包微信小游戏报错 ReferenceError: Matter is not defined [ 71%]

...报错:Matter is not defined, 在game.js里面添加了 let matter = require("matter.js"); window.Matter = matter; 但是还是不行,有没有其他方法解决 附件 : --> 2018-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

55. 游戏运行在chrome里面 听不见声音 [ 71%]

...地址栏输入 chrome://flags/#autoplay-policy 选择 No user gesture is required,之后重启浏览器即可,chrome浏览器更新版本后的新增的安全策略。 2018-05-14 2 0 分享 微博 QZONE 微信 rabbit 赞同来自: layabox 、ayiui4566 iOS下声音在没有交互的情况下,...

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

56. 微信开发者工具出现错误:Laya3D init error must support webGl [ 71%]

...:111146:16)     at http://127.0.0.1:38102/game/code.js:111237:1     at require (http://127.0.0.1:38102/game/__ ... :13718)     at http://127.0.0.1:38102/game/__ ... 13432     at http://127.0.0.1:38102/game/game.js:4:1     at require (http://127.0.0.1:38102/game/__ ... :13718)     at http...

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

57. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 70%]

...ne 2.5.2 问题.   原文如下: Guideline 2.5.2 - Performance - Software Requirements     Your app, extension, or linked framework appears to contain code designed explicitly with the capability to change your app’s behavior or functionality after App Review approval, which is not in complianc...

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

58. 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() [ 70%]

...,Chrome下chrome://flags/#autoplay-policy,然后选No user gesture is required 。 2018-07-10 2 0 分享 微博 QZONE 微信 anghuo 赞同来自: 自己顶一下!先 2018-06-09 0 0 分享 微博 QZONE 微信 老衲当时慌了 赞同来自: 在最新版的Chrome浏览器(以及所有以Chrom...

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

59. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 69%]

...ot defined Error: module "libs/laya.wxmini.js" is not defined at require (http://127.0.0.1:43425/game/__ ... :13569) at http://127.0.0.1:43425/game/__ ... 13424 at http://127.0.0.1:43425/game/game.js:6:2 at require (http://127.0.0.1:43425/game/__ ... :13675) at <anonymous>:1:1 consol...

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

60. 淘宝创意互动发布指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 69%]

...用2个方法,在 H5 上是可以正常输出内容的。 ```javascript require("a.js") require("b.js") a(); //a b(); //b ``` 但是在淘宝创意互动项目中是不支持这种写法的,需要把这 2 个方法挂载到全局变量 `$global.window` 上,修改如下: ```javascript //a.js ...

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