大约有 84 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0049 秒)
...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
...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
...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
...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
...s.drawImage(interceptT, 0, 0, btn_edit.width, btn_edit.height); Laya.stage.addChild(img); 如图和代码(一个按钮点击后draw图然后加入stage) 只要添加至stage后,随后就会出现这个错误,跟踪查到传入的不是WebGLTexture而是一个canvas,应该是渲染出...
来源: Laya_社区 发布时间: 20190422
...F"; txt.pos(50, 100); Laya.stage.addChild(txt); socket = new Socket(); output = socket.output; ...
来源: Laya_社区 发布时间: 20170209
...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
...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
.../ 添加到舞台 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
...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