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

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

251. 初学者的提问,如何在场景中获取到对象 [ 56%]

...         this.btn = this.owner;         this.btn.on(Laya.Event.CLICK,this,this.cli)                    }         cli(){         /// how to 获得text 对象,并改变text的值???     } 2020-04-12 添加评论 免费帖 --> 分享 微...

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

252. 这2.0的文档有吗?咋跟我下的2.0好不一样不知道咋开始 [ 56%]

...LAYAAIR2.0 有新手文档吗,我连HELLOWORLD都打不出 有没有Laya.Event.CLICK的相关说明文档 技术文档那个简单3D例子 as3源码资源有吗?打网球那个哈 【文档错误】3D Camera文档添加天空盒错误 社区、文档、API的全文搜索功能不太好用 layaAi...

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

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

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

254. layaair怎么实现界面跳转 [ 55%]

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

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

255. 两个小问题 [ 55%]

...、一个面板中含有几个按钮,分别为按钮添加 this.myBtn.on(Event.CLICK) 事件,点击某按钮后有时还会发送事件 this.event(...),在关闭面板时设置 this.removeSelf() ,下次生成同类型的对象面板可正常打开;若在关闭时设成 this.destroy() 或 t...

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

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

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

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

257. 如何往TiledMap格子内追加精灵 [ 55%]

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

258. 摄像机捕捉目标(ActionScript-3D基础(AS3)-LayaAir3D之Camera) [ 55%]

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

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

259. laya.ui.Button [ 55%]

...All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton Component Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多态按钮。 Button 组件可显示...

来源: laya_api 发布时间: 20170929

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

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