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

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

191. sprite添加texture后,sprite无法触发点击事件? [ 57%]

...(IMG_RES[this.name])); Laya.stage.addChild(this.item);  this.item.on(Laya.Event.CLICK, this, () => { this.item.destroy(); }); 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: ...

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

192. layaair怎么实现界面跳转 [ 57%]

layaair怎么实现界面跳转 this.headImg.on(Laya.Event.CLICK, this, this.myCenterClick); //跳转到百度 public myCenterClick(): void { 这里面怎么写 } 2017-10-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 ...

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

193. 如何让一个点击事件执行完立即移除 [ 57%]

...何让一个点击事件执行完立即移除 Laya.sg_paiui.zybut2.on(Laya.Event.CLICK,this,function(th,e){                                 Laya.sg_paiui.zybut1.visible = false; }) 比如说这个事件 如何让他执行完立即移除 2017-10-11 添加评论 免费帖 --> ...

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

194. 如何往TiledMap格子内追加精灵 [ 57%]

...((0 + no) * 99.5, 73); flower.mouseEnabled=true; flower.alpha=1; flower.on(Event.CLICK,this,function() { flower.scaleX=1.1; flower.scaleY=1.1; Laya.timer.once(100, this,function() { flower.scaleX=1; flower.scaleY=1; alert("My Name is Bear" + no); return; }) }); mallLayer._childs[0].addChild(flower);...

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

195. 摄像机捕捉目标(JavaScript-3D基础(JS)-LayaAir3D之Camera) [ 57%]

...0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉...

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

196. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 57%]

...0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index % 3 === 2){ //摄像机捕捉...

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

197. addchild后,怎么去引用? [ 57%]

...lose_1.ani"); lose1.x=150; lose1.y=400; lose1.size(100,300); lose1.on(Laya.Event.CLICK,this.listP,this.play1); lose1.name="lose1"; this.listP.addChild(lose1); play1():void { console.log("111"); this.lose1.play(); //this._childs[5].play(); } 2017-10-25 添加评论 免费帖 --> 分享 微博 QZONE ...

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

198. 新版版2d粒子问题?同样的代码,LayaAir IDE 2.1.0版本正常,LayaAir IDE 2.2.0beta2版本报错 [ 57%]

...版本正常,LayaAir IDE 2.2.0beta2版本报错    Laya.stage.on(Laya.Event.CLICK, this, () => {             Laya.loader.load("HallAni/star.part", Laya.Handler.create(this, (settings) => {                 let Particle2D = Laya.Particle2D;            ...

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

199. 按照视频教程popup为什么没有底层的透明遮盖层啊? [ 56%]

...透明遮盖层的,为什么我的就没有啊? this.btn_login.on(Laya.Event.CLICK,null,()=>{   var aDia:aDialog = new aDialog("登陆");   aDia.popup(true);   Laya.stage.addChild(aDia); })   附件 : --> 2017-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...

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

200. 3D场景跳转到2D场景问题 [ 56%]

... } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScene); } } 求大佬教学 2019-09-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...

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