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

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

821. 对话框点击空白处无法关闭 [ 70%]

...g() { SelectColorDialog.super(this); this.name = 'SelectColorDialog'; Laya.stage.addChild(this); this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());然后我使用下面的代码来弹出对话框 var dialog = new SelectColorDialog(); dialog.s...

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

822. 华为手机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

823. 微信小游戏iOS滑出控制中心或通知中心,导致音乐自动停止。 [ 70%]

...关的链接 提交 1 个回复 bpmf_d 赞同来自: // 失去焦点 Laya.stage.on(Laya.Event.BLUR,this,function(){}); // 获得焦点 Laya.stage.on(Laya.Event.FOCUS,this,function(){}); 可以试试这两个方法如果不行  就请提供一下可以复现的demo 2019-05-09 0 0 分享 微博 QZONE...

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

824. 为什么hitTestPoint始终是false? [ 70%]

...ya.Image("comp/bg.png"); this.s.addChild(img); this.addChild(this.s); Laya.stage.on(Laya.Event.CLICK, this, this.hitPoint); } private hitPoint(e:Laya.Event): void { console.log(this.s.hitTestPoint(e.stageX, e.stageY)); } } 很简单的代码,不知道什么hitTestPoint始终得到的是false.我...

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

825. LayaNative2.0 UI移除舞台,再添加必然无法显示 [ 70%]

...(); _con2 = new Sprite(); _con3 = new Sprite(); _con4 = new Sprite(); Laya.stage.addChild(_con1); Laya.stage.addChild(_con2); Laya.stage.addChild(_con3); Laya.stage.addChild(_con4);   _p1 = new UI1(); _p2 = new UI2();   ShowHide(); }   private function ShowHide():void { if (c % 2 == 0) { _con3.ad...

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

826. Laya3D场景加载问题 [ 70%]

...ya.Loader.getRes("gate/Conventional/Test.ls")         let scene = Laya.stage.addChild(test);         Laya.stage.setChildIndex(scene, 0);         //获取相机         var camera = scene.getChildByName("Main Camera");         console.log("test====================:" + Laya.version...

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

827. 图片mask失效问题. [ 70%]

...rite();    //addChild(maskimg);    photoimg=new Sprite();    Laya.stage.addChild(photoimg);    photoimg.mask=maskimg;    photoimg.loadImage(imgn,0,0,500,500);    Laya.timer.once(1000, this, function():void{     maskimg.loadImage("http://img.diyphoto.cn/Mask/im ... ot%3B,0,0,500...

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

828. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 70%]

...nter"; txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。请问谁知道为啥? 附件 : --> assets.rar 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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

829. UI 控件多次调用 RESIZE 回调问题 [ 70%]

...aya.Event.RESIZE, this, () => { console.warn(" resize ===== "); }) Laya.stage.addChild(a); Laya.timer.loop(1000, this, () => { a.addChild(new Laya.Box()); }); --------------- 测试代码如上,每1s会回调一次控件 a 的 RESIZE 方法,这个是否正常? 引擎版本:Laya.version...

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

830. 动态阴影被切割了?为啥没有显示完成的阴影 [ 70%]

...擎 Laya.MiniAdpter.init(); Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); Laya.stage.on(Laya.Event.CLICK, this, mouseHandler); //添加3D场景 var scene = Laya.stage.addChi...

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