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

大约有 84 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)

31. BackGround.super(this);这个报错 Cannot read property 'call' of undefined [ 75%]

...tion shouye(){ Laya.init(100,300); this.bgimg=new BackGround(); Laya.stage.addChild(this.bgimg); })(); return shouye; })(); var BackGround = (function (_super) { function BackGround() { BackGround.super(this); this.bg=new Laya.sprite; this.bg.loaImage("war/beijing.png"); this.addchild(this.bg);  ...

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

32. TypeError: Cannot read property 'length' of null [ 74%]

...study/project/client/test/air_war/bin/libs/laya.core.js:14081:19) at Scene.addChild (file:///D:/work/study/project/client/test/air_war/bin/libs/laya.core.js:12752:22) at GameManager.createHero (file:///D:/work/study/project/client/test/air_war/bin/js/bundle.js:80:24) at GameManager.init (file:///D:/...

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

33. 求助。资源加载问题,按照官方demo出现问题 [ 74%]

...onLoadComplete(){     const scene = new Laya.Scene3D()     Laya.stage.addChild(scene)          const prefab = Laya.loader.getRes(url)     scene.addChild(prefab) } 2020-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...

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

34. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 73%]

...le is not defined. /LayaAirTest/src/LayaAirTest.as (22):warning:Laya.stage.addChild This variable is not defined.   代码如下: package {     import laya.display.Text;     public class LayaAirTest     {         public function LayaAirTest()         {             Laya....

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

35. parameter 2 is not of type 'WebGLTexture' [ 73%]

...s.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img);     如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲染出...

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

36. Socket连接不上(已解决) [ 73%]

...F";             txt.pos(50, 100);             Laya.stage.addChild(txt);                                                    socket = new Socket();                          output = socket.output;                    ...

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

37. 飞机大战出现的问题注册了类New的时候报错未定义 [ 73%]

...g = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg);  })();     })();   //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.super(this); //创建游戏背景1 this.bg1 = new Laya.Sprite(); //加载并显示...

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

38. 微信小游戏下使用laya 自带的video报错 [ 72%]

...s(0,0); video.load("https://game.ruanmengkeji.com/ ... 6quot;); Laya.stage.addChild(video)    在一个界面中加入如上代码  video 没有显示 点击空白  this.videoElement.play is not a function TypeError: this.videoElement.play is not a function   2019-03-12 添加评论 免费帖 -...

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

39. parameter 2 is not of type 'WebGLTexture'. [ 71%]

.../ 添加到舞台 let wrap = this.getChildByName('wrap') as Laya.Box; wrap.addChild(videoElement); // 监听点击事件,开始播放视频 let btn_start = this.getChildByName('btn_start') as Laya.Image; btn_start.on(Laya.Event.CLICK,this,()=>{ // 加载资源足以播放 if(videoElement.readySta...

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

40. TypeError: Cannot read property '_addRenderObject' of undefined [ 71%]

...e:///E:/A_LayaDemo/test3Dscene/bin/libs/laya.core.js:12142:26)   at Stage.addChild (file:///E:/A_LayaDemo/test3Dscene/bin/libs/laya.core.js:11998:22)   at GameUI.onLoadSceneOver (file:///E:/A_LayaDemo/test3Dscene/bin/js/bundle.js:28:24)   at Handler.runWith (file:///E:/A_LayaDemo/test3Dscene/bin/...

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