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

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

431. 画出来鼠标轨迹线 [ 76%]

...舞台上 img1.loadImage("bg.jpg"); img2.loadImage("bg.jpg"); Laya.stage.addChild(img2); Laya.stage.addChild(img1); //给两个老婆穿上衣服,并出现在舞台上 //鼠标移动时触发的mousemove事件 function mousemove(){     point.push({         x:Laya.stage.mouseX,     ...

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

432. 如何添加对象到DialogManager层以上 [ 76%]

如何添加对象到DialogManager层以上 例如我 Laya.stage.addChild(Sprite) 一个显示对象。但是dialogmanager自己有层级交换,一会儿刚addChild的Sprite就到dialogManager下一层了 有什么办法解决吗 2019-01-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

433. visible无效 [ 76%]

... 人 jkNiso • 2017-12-20 15:54 原来如此,在B类里我应该用this.addChild(),不应该用Laya.stage.addChild(),,谢谢 Laya_Aaron • 2017-12-20 16:49 赞一个~! Laya_Aaron • 2017-12-20 16:51 说道点子上了,当时想说,让exchangeas 类里面加一个方法, 摘除这个...

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

434. 粒子-粒子演示2 [ 76%]

...建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } } new Particle_T2();module laya { import Stage = Laya.Stage; imp...

来源: Laya2.0_示例 发布时间: 20251209

435. 粒子-粒子演示3 [ 76%]

...建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发射粒子 partIns.emitter.start(); // 播放 partIns.play(); partIns.x = Laya.stage.width / 2; partIns.y = Laya.stage.height / 2; } } new Particle_T3();module laya { import Stage = Laya.Stage; imp...

来源: Laya2.0_示例 发布时间: 20251209

436. 位图切片组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...bg.width >> 1, Laya.stage.height - bg.height >> 1); this.owner.addChild(bg); } private createTimerAnimation(): void { this.counter = new Laya.Clip(this.clipSkin, 10, 1); this.counter.autoPlay = true; this.counter.interval = 1000; this.counter.x = (Laya.stage.width - this.counter.width) /...

来源: Laya3.0_文档 发布时间: 20251010

437. 父容器为何不响应鼠标事件 [ 76%]

...ya.Sprite = new Laya.Sprite() son.loadImage("res/me.png",0,0,30,30) father.addChild(son)              Laya.stage.addChild(father) father.x = 100; father.y = 100; father.on(Laya.Event.CLICK,this,this.onTestClick) 然而点击后onTestClick()根本不响应,如果改成son.on(...)倒是...

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

438. 调用图集中小图片失败 [ 76%]

...败 var sp:Sprite=new Sprite(); sp.loadImage("img/btnbg2.png"); Laya.stage.addChild(sp); var sp1:Sprite=new Sprite(); sp1.loadImage("system/twoP.png"); Laya.stage.addChild(sp1); img图集中的小图可以调用到,system的图集调用不到,在浏览器的资源列表中加载中加载到了图集...

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

439. 相同的写法,为何一个可以加载,一个报错 [ 76%]

...nberListView = new MenberListView();  MenberListView.init();  Laya.stage.addChild(MenberListView); 与  Laya.stage.addChild(new MenberListView);   有啥区别? 附件 : --> 2017-01-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

440. 3D+2D场景截屏,在不同浏览器显示效果不一致 [ 76%]

...pi.filters = spi1.filters = spi2.filters = [blurFilter]; this.owner.parent.addChild(spi); this.owner.parent.addChild(spi1); this.owner.parent.addChild(spi2); // }) }求教以下大佬们,是否还有其他的截屏方法(使用了drawToCanvas,因为3d场景对象比较复杂,无法实现预期...

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