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

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

691. Laya事件不能添加给多边形吗? [ 69%]

...ct( 0, 0, Laya.stage.width, Laya.stage.height-100, "#ffffff" ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, function(){ console.log( 'adf' ) } );   我创建一个多边形,然后添加一个点击事件就没反应。但是如果添加一个图片,点击就有反应...

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

692. 资源加载(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 69%]

...unction(scene:Scene3D):void { //加载完成获取到了Scene3d Laya.stage.addChild(scene); //获取摄像机 var camera:Camera = scene.getChildByName("Main Camera") as Camera; //清除摄像机的标记 camera.clearFlag = BaseCamera.CLEARFLAG_SKY; //添加光照 var directionLight:DirectionLight = ...

来源: Laya2.0_文档 发布时间: 20210715

693. sprite 设置为静态变量后,无法从舞台移除 [ 69%]

...; Stat.show(); sp=new Sprite(); sp.loadImage("background.jpg"); Laya.stage.addChild(sp); Laya.stage.on(Event.CLICK,this,onClick); function onClick():void { // TODO Auto Generated method stub Laya.stage.off(Event.CLICK,this,onClick); Laya.stage.removeChild(sp); Loader.clearRes("background.jpg"); sp.d...

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

694. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 69%]

...>> 1); _colorSpr.size(_colorTex.width, _colorTex.height); Laya.stage.addChild(_colorSpr); _initPixelCount = getPixel(_colorTex); addEvent(); } private function addEvent():void { _colorSpr.on(Event.MOUSE_MOVE, this, __moveHandler); } private function __moveHandler():void { var p:Point = toLocal...

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

695. swf播放有问题,遮罩动画不能用吗 [ 69%]

...ovieClip = new MovieClip(); mc.load(this.SWFPath); mc.pos(0,0); Laya.stage.addChild(mc); } } } new laya.Animation_SWF(); Charles • 2018-01-08 13:51 支持遮罩动画吗?请帮忙看看我这个问题,https://ask.layabox.com/question/10417。转后的swf播放报错。

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

696. Laya.loader.load 加载场景报错 [ 69%]

...e(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.<anonymo...

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

697. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 69%]

...教: soundManager如何停止正在播放的背景音乐 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 怎么停止正在运行Laya.timer.frameLoop的回调函数 背景音乐问题,停止与播放状态与InnerAudioContext对象不同步 为什么编辑环境下的ui文...

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

698. 事件绑定不触发bug [ 69%]

...down", this, callback);                           Laya.stage.addChild(sp);                                        console.log(" laya test");                      };                  laya_test();   如上代码,加上sp.pos(500, 400);这句...

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

699. vbox动态添加子项目问题 [ 69%]

...加子项目问题 UI里有一个VBOX,然后代码里通过for循环来addChild(ItemRender)的方式 添加子项目,页面中发现所有子项目居然重叠在一起了,使用了vbox.refresh()也没用,如何能让动态添加进入vbox的东西正常排列? 2018-08-29 添加评论 免...

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

700. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 69%]

... bg.graphics.drawTexture(texture, 0, 0); //将bg添加到舞台 Laya.stage.addChild(bg);  我们再次刷新页面看看有什么效果   嗯 看来图片出来了~~~不错 现在我们可以开始继续了   //=======================  美丽的分割线 =======================   编写RunGame...

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