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

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

1481. 用ide打包后的图片,Texture显示不出来? [ 70%]

..., onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){         aa.graphics.drawTexture(texture,0,0);     }, 1000 ) } 3Q 2017-12-26 添加评论 ...

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

1482. laya.ui.List_API3.0 [ 70%]

....init(640, 800, "false");//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoad...

来源: Laya3.0_api 发布时间: 20231115

1483. layabox 怎么使用 google/blockly [ 70%]

...么使用 google/blockly //初始化引擎 //Laya.init(960, 660); //Laya.stage.bgColor = "#ffffff"; var demoWorkspace:Object = Browser.window.Blockly.inject('blocklyDiv',{toolbox: Browser.document.getElementById('toolbox')}) 不创建laya舞台是直接能玩,但是不知道怎么把Blockly 生成...

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

1484. Panel中添加图片无法显示,文本可以 [ 70%]

... = new Laya.Sprite();     ape1.graphics.drawTexture(t, 0, 0);     Laya.stage.addChild(ape1);     //面板     var panel = new laya.ui.Panel();     panel.width = 500;     panel.height = 500;     panel.x = 200;     var label = new laya.ui.Label();     label.text = "fsadfsdfsdfsdfsdf"...

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

1485. 切换后台时,引擎如何判断是否停止定时器? [ 70%]

...      constructor() {         super();          this.stage.on(Laya.Event.FOCUS, this, this.onFocus);         this.stage.on(Laya.Event.BLUR, this, this.onBlur);         Laya.timer.frameLoop(1,this,this.onFrameLoop);     }      private onFrameLoop():void{...

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

1486. 设置背景透明,在电脑上没有问题,但是在手机上(如微信qq浏览器)是无效的 [ 70%]

...效。 Laya.init(GameConfig.DeviceW, GameConfig.DeviceH, Laya.WebGL); Laya.stage.bgColor = "none";//背景透明 } else { Laya.init(GameConfig.DeviceW, GameConfig.DeviceH); Laya.stage.bgColor = null;//背景透明 } 2018-05-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

1487. iphone的Safari上运行横屏出现白边 [ 70%]

iphone的Safari上运行横屏出现白边 Laya.stage.scaleMode = "full";iphone5s的Safari上运行横屏上方出现白边.请问是怎么回事   附件 : --> 2017-03-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

1488. drawToTexture截大图有问题,会丢失 [ 70%]

...,1600,"#ff0000");         this.nsp.mouseThrough=true;         Laya.stage.addChild(this.nsp);         this.nsp.on(Laya.Event.CLICK,this,this.drawImg,null)     }     drawImg(e:Event=null):void{         var copySpr:Laya.Sprite=new Laya.Sprite();         copySpr.texture=this.nsp....

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

1489. 华为手机SoundManage.playSound有问题 [ 70%]

...            Laya.init(1136, 640);             Laya.stage.bgColor="#ffcccc";             SoundManager.playSound("GameSound/aa/bb.mp3",1,new Handler(this,soundComplete));                                  }            privat...

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

1490. 关于页面跳转的困惑,class初始化和释放的问题。 [ 70%]

...放的问题。 我是这样实现页面跳转的 var b = new B()  然后stage.addChild(b) ,这时候UI从A切换到了B   然后 var a = new A() 然后 stage.addChild(a) ,这时候UI从B切换到A   以上实现UI页面的跳转,但是发现再次 从A跳转到B的时候,class B里的con...

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