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

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

61. LayaBox HelloWorld实战 [ 83%]

...编辑模式,在Basics目录下找到UI目录,在UI目录里面找到Button并拖拽到场景中,修改它的通用属性var为btnShow,常用属性label为helloworld   经过这两步我们的游戏场景就大功告成了。 第三步:我们把窗口切换到IDE的代码模式,在src...

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

62. 如何阻止 点击 继续传递 [ 83%]

如何阻止 点击 继续传递 list的item 上有一个buttonbutton首先处理click事件,然后 list处理该事件 如何阻止事件继续传递,而只让button处理,尝试过如下方法,但无效 附件 : --> 2017-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...

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

63. VBOX动态增加的元素没有自动布局 [ 82%]

...uctor() { super(); var btn1=new ui.test.view_btnUI(); var btn1_btn:laya.ui.Button=btn1.getChildByName("btn") as laya.ui.Button; //问题一: 这里为什么获取不到子node呢?打印显示btn1_btn为null console.log(btn1_btn); // btn1_btn.label="first"; this.myvbox.addChild(btn1); var btn2=ne...

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

64. 关于button的destroy不起作用的问题 [ 82%]

关于button的destroy不起作用的问题 dialogButton = new Button(assets[0]); dialogButton.label = "知道了"; dialogButton.height = 30; dialogButton.width = 80; dialogButton.name = Dialog.CLOSE; dialogButton.pos(20,clientHeight*0.2-dialogButton.height-20); dialogButton.labelColors = "#7FFFD4,...

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

65. list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 [ 82%]

list中的item类中的button注册事件不响应 是怎么回事呢 ?可以帮帮我解答下吗 class Item extends Laya.Box{ public static WID: number = 147; public static HEI: number = 190; private skin_progress_chip:Laya.ProgressBar; private skin_img:Laya.Image; private skin_chipNum:Laya.Tex...

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

66. 如何用代码触发点击事件? [ 82%]

...       let event = new Laya.Event()                 button.event(Laya.Event.CLICK, event.setTo(Laya.Event.CLICK, button, button));     2019-05-21 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 直接调用 sprite1CallBack(); 2018-07-24 0 1 分享 微博 QZONE 微信...

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

67. 3D射线穿透UI问题 [ 81%]

...用射线打到场景上面,我给UI设置了名字,加到舞台 Laya.Button button = Laya.stage.addChild(new Laya.Button("res/layabox.png", "切换动作")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现  });     在另一个方法里...

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

68. armebai的so缺失导致闪退,能不能提供这个so??? [ 81%]

...,里面有修改方案 ui编辑器编辑了一个面板,面板里有个button, 编辑好以后,正常加载ui 面板,button的图片资源没找到,导致button无法正常显示 重发问题: 点击页面会导致setTimeout setInterval 延迟执行 音乐播放来回切换导致内存泄露...

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

69. laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 [ 81%]

...类了,此时该如何获得场景内的元素呢,比如一个叫b1的Button,在该场景下的runtime里已经不能再通过this.b1来获得了,这个时候该怎么获得呢? 另外,如果直接在场景里放个脚本,通过公有属性像Unity一样直接把Button拖进来当做...

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

70. Laya UI系统 Mouse事件传递问题 [ 80%]

...:   其中, Panel_A和Panel_B 大小均为750 x 1334 Panel_A包含按钮Button_A Panel_B 包含按钮Button_B 两个按钮不重叠。   该View运行实际发现: 仅Button_B 能够接受到鼠标事件, Button_A永远不能接受到事件。。   猜测该问题的原因是: Panel_A 在Pa...

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