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

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

31. 小程序不支持matter.js吗 [ 79%]

...game/code.js:1:839076 at http://xxx.xxx.x.x:14680/game/code.js:1:843108 at require (http://xxx.xxx.x.x:14680/game/ ... :77964) at http://xxx.xxx.x.x:14680/game/ ... 77573 at http://xxx.xxx.x.x:14680/game/game.js:4:1 at require (xxx.xxx.x.x:14680/game/__dev__/WAGame.js:1:77964) at http://xxx.xxx.x.x:...

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

32. Laya 安卓端 在服务端运行指令layadcc ./ 后进不去,提示 assetId is old 和 init dcc fail。然后过五六个小时后才不会报这个错。。才能进去 [ 77%]

...file in the package:app.json 12-09 22:04:33.108 12728-12832/? I/LayaBox:  require(/sdcard/layabox/scripts/scripts/index.js) 12-09 22:04:33.109 12728-12832/? I/LayaBox:  require(/sdcard/layabox/scripts/index.js) 12-09 22:04:33.110 12728-12832/? I/LayaBox: found the file in the package:scripts/index...

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

33. 微信小游戏 [ 77%]

...737/game/code.js:28297:7 at http://127.0.0.1:49737/game/code.js:28300:3 at require (http://127.0.0.1:49737/game/__ ... :13675) at http://127.0.0.1:49737/game/__ ... 13424 at http://127.0.0.1:49737/game/game.js:4:1 at require (http://127.0.0.1:49737/game/__ ... :13675) 2018-05-10 添加评论 免费...

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

34. 如何引入npm包? [ 76%]

...码提示是有的,但是编译运行后就报错了,ReferenceError: require is not defined 是我引入的方式不对吗? 论坛里也没有搜到相关的,请大神给个typescript的使用例子       附件 : --> 2017-12-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

35. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 76%]

...饰器语法 }, } 但修改完配置编译的时候会报错:This syntax requires an imported helper but module 'tslib' cannot be found 开发群里有大神提供了一种解决办法: 右键 LayaAirIDE.app->显示包内容,定位到 Contents->Resources->app->node_modules->rol...

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

36. 微信小游戏引用spine-core-3.8.js报错 [ 76%]

...AGame.js:2 Error: module "libs/spine-core-3.8.js" is not defined     at require (VM97 WAGameSubContext.js:2)     at a (VM97 WAGameSubContext.js:2)     at index.js? [sm]:28     at require (VM97 WAGameSubContext.js:2)     at a (VM97 WAGameSubContext.js:2)     at game.js? [sm]:9   ...

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

37. 官网的微信小游戏2D例子,发布以后无法运行 [ 76%]

...is not defined     at http://127.0.0.1:16026/game/code.js:29:15     at require (http://127.0.0.1:16026/game/__ ... :96033)     at http://127.0.0.1:16026/game/__ ... 95643     at http://127.0.0.1:16026/game/game.js:3:30     at require (http://127.0.0.1:16026/game/__ ... :96033)     at &lt...

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

38. 发布的微信小游戏代码运行出错 [ 75%]

...: Window is not defined at http://127.0.0.1:11874/game/code.js:1:773096 at require (http://127.0.0.1:11874/game/__ ... :13718) at http://127.0.0.1:11874/game/__ ... 13432 at http://127.0.0.1:11874/game/game.js:4:1 at require (http://127.0.0.1:11874/game/__ ... :13718) at http://127.0.0.1:11874/game/...

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

39. 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. [ 75%]

...来的安全策略的变动 需要添加  autoplay-policy=no-user-gesture-required reverts 需要自己处理一下,如果你只是做移动游戏,就选个旧点的PC浏览器调试即可。 2018-05-03 3 5 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 该问题目前已...

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

40. 【分享】通过命令行调用compile.js编译,不使用laya-cmd [ 74%]

... set compilejs=%~dp0.laya\compile.js ::创建一个js文件 echo let app = require("electron").app>compile_temp.js echo let gulp = require('gulp')>>compile_temp.js echo let childprocess = require('child_process')>>compile_temp.js echo let defaultTask = "compile">>compile_temp.js...

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