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

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

91. 请问怎么在按钮点击的时候增加一层遮罩蒙版? [ 77%]

...? 请问怎么在按钮点击的时候增加一层遮罩蒙版?laya里button设置stateNum多态效果太快太死板了,而且还要PS切两张图片出来,类似于unity那种平滑效果? 2018-09-15 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

92. laya.ui.ComboBox [ 76%]

...域底边之间的垂直距离(以像素为单位)。 UIComponent  button : Button[read-only] 获取对 ComboBox 组件所包含的 Button 组件的引用。 ComboBox cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存,...

来源: Laya2.0_api 发布时间: 20190513

93. 阻止点击穿透问题 [ 76%]

...• 2020-03-19 23:53 无力吐槽,Sprite里面必须至少容纳过一个Button组件才能正常阻挡鼠标,无论你怎么设置mouseEnabled和mouseThrough Raykid • 2020-03-19 23:53 @WANGGANG:无力吐槽,Sprite里面必须至少容纳过一个Button组件才能正常阻挡鼠标,无...

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

94. laya.ui.ComboBox [ 76%]

...区域底边之间的垂直距离(以像素为单位)。 Component  button : Button[read-only] 获取对 ComboBox 组件所包含的 Button 组件的引用。 ComboBox cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重新缓存...

来源: laya_api 发布时间: 20170929

95. 请问老师为什么我按照官网的实例播放音频没反应呢? [ 76%]

...up() { var gap = 10; //创建一个Sprite充当音效播放按钮 var soundButton = createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton); //创建一个Sprite...

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

96. 如何阻止 点击 继续传递 [ 76%]

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

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

97. 请问如何获取某组件的像素坐标 [ 76%]

...添加了vbox,里面含有N个hbox,在其中一个hbox里含有一个button,请问我如何获取这个button的像素点坐标,需要它的像素x、y、宽度、高度,如果用localToGlobal,好像获取得的是这个button相对stage的逻辑位置(或者是叫设计时的位置?...

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

98. UI弹窗 · LayaAir3.0文档 · LAYABOX [ 75%]

...Laya.Image = new Laya.Image(this.assets[0]); this.dialog.addChild(bg); var button: Laya.Button = new Laya.Button(this.assets[1]); button.name = Laya.Dialog.CLOSE; button.pos(this.DIALOG_WIDTH - this.CLOSE_BTN_WIDTH - this.CLOSE_BTN_PADDING, this.CLOSE_BTN_PADDING); this.dialog.addChild(button); this...

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

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

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

100. [LayaAir3]Laya3.3.2编辑器中,使用按钮控制器修改按下状态按钮文字颜色不生效 [ 75%]

...的链接 提交 1 个回复 Laya_Fred 赞同来自: 您好,您可以给Button增加gears齿轮配置(控制title color标题颜色即可),这样的话可以在Button10上直接控制不同button页面的title color。 2025-11-11 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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