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

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

91. chrome里运行游戏 游戏声音听不见 [ 57%]

...y-policy 然后在高亮的选项中,将Default 换成No user gesture is required   操作步骤参照截图       2018-05-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已经被锁定, 无法添加新回复 发起人 一念天堂 相关问题 写个...

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

92. 发布到微信小游戏提示Cannot read property 'Common' of undefined [ 57%]

...把matter.js加入了libs中。并且在game.js中加入了 let matter = require("libs/matter.js"); window.Matter = matter; 但是依然没有解决问题 2018-05-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

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

93. XmlDom类没有了?解析xml时,报错Property 'attributes' does not exist on type 'Node & ChildNode'. [ 57%]

...并放到bin/js下面了,并且已经在game.js里加了window.Parser = require("./js/dom_parser");

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

94. 微信小游戏IDE加载位图字体,提示错误 [ 57%]

...183*****291 赞同来自: 我解决了,在引入js后  window.Parser = require("./js/dom_parser"); 在core.js中   /**   *资源加载完成的处理函数。   *@param data 数据。   */   __proto.onLoaded=function(data){  在 var bFont=new BitmapFont(); bFont.parseFont(this._data,d...

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

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

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

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

96. layaair2-cmd compile 有bug [ 55%]

...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

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

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

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

98. laya2.0引入第三方库失败 [ 53%]

... 1 个回复 rabbit 赞同来自: karin666 、李家智 import YQBCommon = require("../../libs/pb2");引用这个没必要,而且路径也是错的。删除这行,pb2.d.ts没问题后,即可正常使用。。   pb2.d.ts和protobufjs.d.ts也有问题,别用export as namespace 用 declare mo...

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

99. 打包native报错 [ 53%]

...he package:app.json   2019-06-18 13:34:09.276568+0800 test1[6479:65523]  require(/sdcard/layabox/scripts/index.js) 2019-06-18 13:34:09.277721+0800 test1[6479:65523] found the file in the package:scripts/index.js   2019-06-18 13:34:09.279091+0800 test1[6479:65523]  ===============================...

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

100. 安装layaair2-cmd一直失败 [ 53%]

...ming\npm\node_modules\layaair2-cmd\no de_modules\core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript stand ard library! The project needs your help! Please consider supporting of core-js on Open...

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