大约有 1,451 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
Laya_社区(932) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(32) laya_api(1) Laya2.0_api(1)
TypeError: this._childs is null 用了Laya.stage.destroyChildren();之后出错 TypeError: this._childs is null 看不懂啊! 救命啊!!!!!! 还有火狐提示 HTTP "Content-Type" 中的 "text/html" 不支持。媒体资源加载失败。 无法播放媒体。没有相应格式的...
来源: Laya_社区 发布时间: 20171206
...this.bg = new BackGround(); //把背景添加到舞台上显示出来 Laya.stage.addChild(this.bg); })(); })(); //循环滚动的游戏背景 var BackGround = (function(_super){ function BackGround(){ BackGround.super(this); //创建游戏背景1 this.bg1 = new Laya.Sprite(); //加载并...
来源: Laya_社区 发布时间: 20191018
...tion(){ (function Game(){ Laya.init(480,852); this.bg = BackGround(); Laya.stage.addChild(this.bg); })(); })(); src/BackGround.jsvar BackGround = (function(_super){ function BackGround(){ BackGround.super(this); this.bg1 = new Laya.Sprite(); this.bg1.loadImage("war/background.png"); this.addChild(th...
来源: Laya_社区 发布时间: 20181003
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
...情况下获取实际宽高为0的问题? 示例代码: (function() { var Stage = Laya.Stage; var HTMLDivElement = Laya.HTMLDivElement; var HTMLIframeElement = Laya.HTMLIframeElement; var Browser = Laya.Browser; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.ini...
来源: Laya_社区 发布时间: 20170314
... sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,'#FFFF00'); Laya.stage.addChild(sp); var mask:Sprite=new Sprite(); mask.graphics.drawCircle(0,0,50,'#FF0000'); sp.mask=mask;2、动态遮罩 Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,'#FFFF00'); Laya.st...
来源: Laya_社区 发布时间: 20170207
...y = 4; this.graphics.drawRect(0, 0, 90, 90, '#aabbcc', '#bbccdd', 1); Laya.stage.addChild(this); var lastTimestamp = 0; var count = 0; var totale = 0; Laya.timer.frameLoop(1, this, function test() { var deltaTime = new Date().getTime() - lastTimestamp; lastTimestamp = new Date().getTime(); count++; ...
来源: Laya_社区 发布时间: 20170920
...rankList.renderHandler = new Laya.Handler(this, updateItem); Laya.stage.addChild(rankList); var data = ; for (var i = 0; i < 10; ++i) { data.push("https://wx.qlogo.cn/mmopen/vi_ ... 6quot;); data.push("https://wx.qlogo.cn/mmopen/vi_ ... 6quot;); dat...
来源: Laya_社区 发布时间: 20180507
....create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function at Stage.__proto.addChild (laya.core.js:13290) at Main.<a...
来源: Laya_社区 发布时间: 20181208
...his.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild(testView); Laya.timer.once(200,this,this.removeUi,[testView]); } __proto.removeUi=function(ui){ if(ui!=null){ ui.destroy(); this.isOpen=false; } } 代码主要是做了重复打开关闭一个界面,调用...
来源: Laya_社区 发布时间: 20190517