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

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

241. 两个小问题 [ 56%]

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

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

242. laya.ui.Button [ 56%]

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

243. addchild后,怎么去引用? [ 56%]

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

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

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

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

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

246. tree异步选中问题 [ 56%]

...弄一下,== Chuan • 2018-03-24 14:57 已解决: if (e.type == Laya.Event.CLICK) { if (e.target.name == "arrow") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { th...

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

247. list item 添加事件后无法监听 [ 56%]

...Source);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }  function onSelect(index) {     console.log("当前选择的索引:" + index); } function createAPIList(api_list_view) {     let data = []...

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

248. 按照视频教程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

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

250. UI编辑器里按钮事件 onClick怎么使用 [ 56%]

...using 赞同来自: 求正确用法,  注: 我不想在代码里写btn.on(Event.Click,toLogin) 2017-12-05 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 目前这个功能是用来测试的,我们还要考虑是否保留onClick里边填的方法必须是静态的,具体的...

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