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

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

11. 微信小程序打包,提示“laya is not defined” [ 84%]

...  at code.js:11708     at code.js:11720     at code.js:18226     at require (WAGame.js:11)     at WAGame.js:11     at game.js? [sm]:4     at require (WAGame.js:11)     at gamePage.html:135 window.onerror -------------------------- 堆栈代码片段:         附件 : --> 2018-01...

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

12. 分包发布,static方法拿取不到。报错:类名.静态方法名 is not a function [ 84%]

... a function OPPO分包发布时遇到一个问题,当在index.js中最后require("./libs/laya.d3.js");时会报错Shader3D.propertyNameToID is not a function。将require该库的语句提前,则不会报错。但是后导入的类的静态方法会报同样的错误。例如:Laya.QGMiniAdapte...

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

13. 发布到微信小游戏,编译报错Laya is not defined [ 84%]

... 分享 微博 QZONE 微信 ITJacob 赞同来自: 在game.js文件中加上require("libs.js");即可,好像说微信小游戏自带了laya包,不过本地调试的时候加上这条就好了,把libs 里的require("./libs/laya.core.js");加上,本地环境里就有laya了。 2020-08-30 0 0 ...

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

14. 1.9LayairIDE创建的微信小游戏示例运行报错 [ 83%]

...ught ReferenceError: Laya is not defined     at code.js? [sm]:1     at require (VM32 WAGame.js:1)     at VM32 WAGame.js:1     at VM42 game.js:4     at require (VM32 WAGame.js:1)     at <anonymous>:1:1     at HTMLScriptElement.scriptLoaded (<anonymous>:18:21)     at HTMLSc...

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

15. 微信开发者工具,打开Laya发布的包。编译报请先初始化小游戏适配库,详细教程 [ 83%]

...onymous) @ code.js:7056 GameEx @ code.js:56322 (anonymous) @ code.js:56681 require @ WAGame.js:3 (anonymous) @ WAGame.js:3 (anonymous) @ game.js? [sm]:2 require @ WAGame.js:3 (anonymous) @ gamePage.html:148 VM163:1 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a ...

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

16. 微信小游戏:Matter is not defined [ 82%]

...aya_Aaron: 好吧。谢谢。 冰水blue • 2018-06-13 11:54 let matter = require("./libs/matter.js"); window.Matter = matter; require("./code.js"); 确实可以了,麻烦看下,下面这个系统问题是什么原因,谢谢您!

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

17. 真机环境找不到window---cant find variable: window stack [ 82%]

...of swan !== 'undefined') && (typeof swanGlobal !== 'undefined')) { require("swan-game-adapter.js"); require("libs/laya.bdmini.js"); } else if (typeof wx !== 'undefined') { require("weapp-adapter.js"); require("libs/laya.wxmini.js"); } window.loadLib = require; require("index.js"); 2019-01-08...

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

18. 苹果上架问题, [ 82%]

..., 2017年12月8日 上午9:53 发件人 Apple2. 5 Performance: Software Requirements 4. Design: Preamble 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 ...

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

19. 用的2.0.0beta2,为什么发布为小游戏不会生成code.js? [ 81%]

...不会生成code.js?   1.勾选了红框的话,生成的game.js会是 require("weapp-adapter.js"); require("./code.js"); 不勾选的话,生成的game.js会是 require("weapp-adapter.js"); require("libs/laya.wxmini.js"); window.loadLib = require; require("index.js") 引用了code.js,不生...

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

20. 百度小程序问题 [ 80%]

...odule.srcHTMLImageElementJs (swan-game-adapter.js:1547)     at __webpack_require__ (swan-game-adapter.js:26)     at Module.srcImageJs (swan-game-adapter.js:1697)     at __webpack_require__ (swan-game-adapter.js:26)     at Module.srcWindowJs (swan-game-adapter.js:3851)     at __webpack_requ...

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