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

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

41. 两个问题都关于LayaAir的ios真机 [ 74%]

两个问题都关于LayaAir的ios真机 碰到个问题,Button组件我稍微改了下,为了实现按下的时候有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件...

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

42. 高级应用-渲染纹理 [ 73%]

...= new Laya.Vector3(0, 0.5, -1); Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { var changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "渲染目标")); changeActionButton.size(160, 40); changeActionButton.l...

来源: Laya_示例 发布时间: 20251209

43. list ,增加item ,我想在末尾增加,但是每次都给我翻倍的增加,如何解决 [ 72%]

...ll/room_bg.png"); this.roombg.pos(50,150); this.addChild(this.roombg); var button = new Sprite(); button.loadImage($mj.Curr_Game_ImagePath + "hall/room_jiesan.png"); button.pos(300, 0); this.roombg.addChild(button); button.on(Event.MOUSE_DOWN, this, function (e) { list.addItem(1); }); function Item(...

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

44. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 70%]

Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 怎么才能在点击UI时,UI下方的3D物体不响应鼠标事件 2021-01-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1...

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

45. laya.ui.Button [ 70%]

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

来源: laya_api 发布时间: 20170929

46. laya.ui.Button [ 69%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames ButtonProperties | Methods | Events Packagelaya.uiClasspublic class ButtonInheritanceButton UIComponent Sprite Node EventDispatcher ObjectImplements ISelectSubclasses CheckBox, Radio Button 组件用来表示常用的多...

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

47. 老师,请问一下如何在js代码中,动态的创建一个按钮(或者图片、lable)并添加到一个box中? [ 68%]

...方法创建的对象,没办法绑定事件监听? var bt = new Laya.Button("comp/btn_start.png","测试按钮"); bt.on(Laya.Event.CLICK, this, this.click); Laya.stage.addChild(bt); function click() { console.log("??????????"); } 点击之后没有翻译,按钮也...

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

48. 2.0 beta UI Button无法获取 [ 68%]

2.0 beta UI Button无法获取 2.0 beta 版本创建的UI生成代码后,无法获取到Button组件。   生成后的代码: import View=Laya.View; import Dialog=Laya.Dialog; import Scene=Laya.Scene; export module ui { export class AttackUI extends View { public btn_attack:Laya.Button; constr...

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

49. 怎么给List下的每个item中的button添加事件? [ 67%]

怎么给List下的每个item中的button添加事件? 如图,我在UI页面做了个List:     现在我每个button都单独写了一个添加事件,很繁琐,尤其是item多的时候特别麻烦,我自己都觉得这个方法特别蠢,请问有没有好一点的方法呀? 下...

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

50. 动画-旧版骨骼动画 [ 67%]

...ex); } private loadUI(): void { Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(this, function (): void { this.changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")) as Laya.Button; this.changeActionButton.size(160...

来源: Laya_示例 发布时间: 20251209