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

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

1. this.bitmap.activeResource is not a function [ 100%]

... return; console.log("打开开放域",Laya.Browser.onMiniGame) Laya.stage.addChild(this._openZone); this._openZone.x = vx; this._openZone.y = vy; if(Laya.Browser.onMiniGame){ Laya.Browser.window.sharedCanvas.width = Laya.stage.designWidth; Laya.Browser.window.sharedCanvas.height = Laya.stage.design...

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

2. 适配模式在 showall 模式下火狐(PC)的sizeGrid 特别容易出现间隙 [ 99%]

...= "40,40,40,40,0"; dialog.size(500,400); dialog.pos(165, 62.5); Laya.stage.addChild(dialog); } })();       在你们demo的基础上改的  pc的狐火下有问题  ie下应该也有 edge上不太确定 2017-08-28 0 0 分享 微博 QZONE 微信 a1284964657 赞同来自: (function() { var Stage ...

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

3. 报错,这不是个构造函数 "StartPage is not a constructor" [ 98%]

...AS); })() function onLoaded(){ var StartPage = new StartPage(); Laya.stage.addChild(StartPage); var GamePage = new GamePage(); Laya.stage.addChild(GamePage); } })(); 2018-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

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

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

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

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

6. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 96%]

HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 想要加入百度图表 使用Html Canvas的代理类后 加入舞台时报错   示例代码:   var div=Laya.HTMLCanvas.create=new HTMLCanvas("2D");      div.size(600,400);      Laya.stage.addChild(div);      consol...

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

7. laya升级到2.0.0beat4版本,加载场景出现的bug [ 96%]

....Scene3D = Laya.loader.getRes(this.mSceneName) as Laya.Scene3D; Laya.stage.addChild(scene3D); 异常: TypeError: node._setParent is not a function preload.js:55 at Stage.__proto.addChild (file:///E:/H5Project/TestH5Project/TestFeiChe3D/bin/libs/laya.core.js:13235:9) 2018-10-31 添加评论 免费帖...

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

8. 为什么会出现报错 ani not found:ufo1_down [ 95%]

...悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化...

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

9. 为什么会出现报错 ani not found:ufo1_down [ 94%]

...悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初始化...

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

10. 为何发生此类报错Uncaught TypeError: Cannot read property '_tf' of null [ 92%]

...esArray.length; function onLoaded() { console.log("进度条"); Laya.stage.addChild(fairygui.GRoot.inst.displayObject); fairygui.UIPackage.addPackage("res/Public"); var ProgressBarPage=fairygui.UIPackage.createObject("Public","ProgressPage").asCom; fairygui.GRoot.inst.addChild(ProgressBarPage);  va...

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