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

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

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

官方视频教程中飞机大战 "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); })(); })(); s...

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

2. 新手引导在ios浏览器表现异常 [ 95%]

...age.width,Laya.stage.height,"#FFFFFF");             Laya.stage.addChild(sp);              let guideView = new MazeGuideView();             guideView.zOrder = MazeConst.gameZOrder;             guideView.pos(0,0);             Laya.stag...

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

3. IOS的safari浏览器打开h5项目demo,游戏场景偏移(附件有完整demo) [ 86%]

...背景 var bg:Image = new Image(); bg.skin = "res/ui/bg.jpg"; Laya.stage.addChild(bg); //实例一个文本 var txt:Text = new Text(); txt.text = "适配模式("+Laya.stage.scaleMode+") "; txt.bold = true; txt.pos(10, 350); txt.fontSize = 60; txt.color = "#fff000"; Laya.stage.addChild(txt); } } } ...

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

4. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 85%]

...atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;             Laya.stage.timerLoop(1, this, function():void{index++;image.alpha = Math.sin(Math.PI*2*(index/24))})              var image:Im...

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

5. 多次加载一个页面出现_$P为null的情况 [ 84%]

...e.destroyChildren(); var playSence = new OnlinePlaySence(data); Laya.stage.addChild(playSence); },function(data){ console.log('加入游戏失败'); alert('加入游戏失败'); GameUnitls.showToast(data); }); }else{ alert('金币数必须大于500才能开始游戏'); } } 这样进入playSence 页...

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

6. 微信浏览器,input输入完成后,游戏不能还原 [ 84%]

...drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#3e3534"); Laya.stage.addChild(scene);  var inputText = new Laya.Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - 400; inputText.y = Laya.stage.height * 0.4; // 移动端输入提示符 inputText.prompt = "Type some word..."; ...

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

7. 官方技术文档中的问题 [ 80%]

...统计信息 Laya.Stat.show();  //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene());  //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, fals...

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

8. "img.viewport is not a function" [ 80%]

...is.preinitialize is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 微信开发者工具iOS模拟器报错:CharRender_Canvas.ctx.fillAndStrokeText is not a function 问题状态 最新活动: 2017-04-28 19:22 浏览: 1048 关注: 2 人

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

9. 【经验】window.focus is not a function [ 80%]

...场景 physics3D is not a function 官方视频教程中飞机大战 "this.addChild is not a function" 打地鼠发布成微信小游戏后提示gameThirdScriptError this.preinitialize is not a function at api readFile fail callback function api readFile success callback function undefined 在做微...

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

10. 隐藏默认的虚拟键、屏蔽APP窗口弹出脚本错误信息 的问题 [ 79%]

... = new laya.display.Sprite(); // bgs.loadImage("res/bg.png"); //Laya.stage.addChild(bgs); //Laya.stage.addChild(new LoginUI()); //改用下面的 new LoginView.js文件 var loginView = new LoginView(); loginView.init(); Laya.stage.addChild(loginView); //var MenberList = new MenberListView(); // Menb...

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