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

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

821. HTMLIframeElement加载html网页的问题 [ 70%]

...() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLo...

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

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. 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

825. 3D 鼠标检测 错乱 [ 70%]

...var mousePoint=Input3D._tempPoint; mousePoint.setTo(e.pageX,e.pageY); Laya.stage._canvasTransform.invertTransformPoint(mousePoint); this._mouseTouch.mousePositionX=mousePoint.x; this._mouseTouch.mousePositionY=mousePoint.y; this._mouseTouchRayCast(cameras); break ; case "touchstart":; var lastLength...

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

826. 播放视频只有声音没有图像 [ 70%]

....pos(0, 0); reference.size('100%', '100%'); this.addChild(reference); Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement,reference,0, 0,'100%','100%']); Laya.Utils.fitDOMElementInArea(videoElement,reference,0, 0,'100%','100%') } } 2018-11-24 添加评论 免费帖 -...

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

827. 对话框点击空白处无法关闭 [ 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

828. 为什么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

829. 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

830. 图片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