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

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

1. __class is not defined [ 100%]

__class is not defined WAGame.js:3 gameThirdScriptError __class is not defined ReferenceError: __class is not defined at http://127.0.0.1:56728/game/code.js:53274:3 at http://127.0.0.1:56728/game/code.js:53276:4 at require (http://127.0.0.1:56728/game/__ ... :13675) at http://127.0.0.1:56728/game/_...

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

2. TypeError: Laya.MovieClip is not a constructor [ 95%]

...tor preload.js:55 at XLoadUIScript.32.XLoadUIScript._init (file:///D:/1MiniGame/mini-game-client/minigame1/bin/js/bundle.js:3001:18)   at XLoadUIScript.32.XLoadUIScript.onStart (file:///D:/1MiniGame/mini-game-client/minigame1/bin/js/bundle.js:2939:14)   at LaterHandler.__proto.run (file:///D:/1Min...

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

3. 官方视频教程中飞机大战 "this.addChild is not a function" [ 95%]

...大战 "this.addChild is not a function" IDE Layabox1.7.20.2 beta 版 src/Game.js//var WebGL = laya.webgl.WebGL; //Laya.init(480, 852, WebGL); var Game = (function(){ (function Game(){ Laya.init(480,852); this.bg = BackGround(); Laya.stage.addChild(this.bg); })(); })(); src/BackGround.jsvar BackGrou...

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

4. 微信小游戏调试报错window is not defined [ 94%]

...的2D项目发布为微信小游戏后,扫码预览和真机调试,在game.js中都会报错: gameThirdScriptError Uncaught ReferenceError: window is not defined ReferenceError: window is not defined at https://servicewechat.qq.com/game.js:63771:12 at require (<anonymous>:3:7977) at http...

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

5. 打包小游戏后在开发者工具中报错 CharRender_Canvas.ctx.fillAndStrokeText is not a function [ 94%]

...具中报错 CharRender_Canvas.ctx.fillAndStrokeText is not a function WAGame.js:3 gameThirdScriptError CharRender_Canvas.ctx.fillAndStrokeText is not a function TypeError: CharRender_Canvas.ctx.fillAndStrokeText is not a function     at CharRender_Canvas.__proto.getCharCanvas (http://127.0.0.1:59...

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

6. gameThirdScriptError ccs.armatureDataManager.addArmatureFileInfo报错 [ 94%]

gameThirdScriptError ccs.armatureDataManager.addArmatureFileInfo报错 WAGame.js:3 gameThirdScriptError a.querySelectorAll is not a function;at api request success callback function TypeError: a.querySelectorAll is not a function     at Object.addDataFromCache (http://127.0.0.1:64203/game/game.mi...

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

7. 小程序不支持matter.js[ 92%]

小程序不支持matter.js吗 VM145:1 gameThirdScriptError Matter is not defined ReferenceError: Matter is not defined at http://xxx.xxx.x.x:14680/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:14...

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

8. "Background is not defined"怎么会没定义呢???求救 [ 91%]

...因为你在html中引用的顺序问题,先引用background.js再引用game.js 2017-05-25 1 0 分享 微博 QZONE 微信 A846353427 赞同来自: 就没个人回答下吗 2017-04-20 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: Game.jsvar Game = (function(){ (function Game(){ Laya.init(...

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

9. 微信小游戏使用位图字体报错 [ 90%]

...微信小游戏中正常使用位图字体 引入了domparserinone.js, WAGame.js:1 gameThirdScriptError module "libs/entities" is not defined Error: module "libs/entities" is not defined at require (http://127.0.0.1:13507/game/__ ... :78730) at http://127.0.0.1:13507/game/__ ... 78480 at http://127....

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

10. Laya发布微信包提示Uncaught ReferenceError: Laya is not defined [ 90%]

...错:Uncaught ReferenceError: Laya is not defined    解决方法:在game.js  的第一行即require的最开始的位置,再添加一个require("libs/laya.core.js");    如果bin的里面没有game.js   就加入到发布后的微信包的game.js里面 附件 : --> 2020-05-04 添加评...

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