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

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

31. 3D射线穿透UI问题 [ 77%]

...用射线打到场景上面,我给UI设置了名字,加到舞台 Laya.Button buttonLaya.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

32. [LayaAirIDE3]【插件开发】配置方式可以生成非常复杂的界面的部分疑惑 [ 77%]

... items: ["Array", "Atlas", "Json"], visibleItemCount: 3, } } }, { name: "buttons", inspector: "Buttons", options: { buttons: [ { caption: "取消", event: "click_cancel_gen" }, { caption: "生成", event: "click_start_gen" } ] } } ] } ]); Editor.extensionManager.createSettings("SplitAtlasSetting", "...

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

33. 关于list里注册事件和移除事件 [ 77%]

...“兑换”按钮点击事件,在刷新list数据源时,怎么清除Button的点击事件?还是不用清除点击事件?private updateItem(cell: Laya.Box, index: number): void { let btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); ...

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

34. 如何给Tab里的button设置点击事件? [ 77%]

如何给Tab里的button设置点击事件? 2017-05-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: Y_Yao 直接为你的tab添加selectHandler或者mouseHandler即可! 2017-05-16 1...

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

35. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 76%]

...   export default class LoginScene extends Laya.Scene{ public btnReg:Laya.Button; public btnLogin:Laya.Button;  constructor(){ super();  this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) }  createChildren(){ super.createChildren(); this.loadScene('LoginScene'); } ...

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

36. 新手引导在ios浏览器表现异常 [ 76%]

...      setClickArea(posX: number, posY: number, radius: number, button? : Laya.Sprite) {             //绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区             let interactionArea = new Laya.Sprite();           ...

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

37. 事件管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...送者发送事件给它的侦听者。那么比如上面示例代码中的Button就是继承自Laya.EventDispatcher,可以用.on的方法来侦听CLICK`事件。 Laya.EventDispatcher 具有如下功能: 2.2.1 事件派发 event /** * 派发事件。 * @param type 事件类型。 * @param data ...

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

38. Image.loadImage 方法加载问题 [ 76%]

...heet.PublicSpaceData;   private bg:Laya.Image;   private btnEnter:Laya.Button;   constructor()   {    super();    this.initUI();   }   private initUI () : void   {    this.bg = new Laya.Image();    this.btnEnter = new Laya.Button();    this.btnEnter.skin = "gamebutton/bu...

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

39. 分享:Panel下动态修改子容器宽高并刷新显示! [ 75%]

...age { import laya.display.Sprite; import laya.events.Event; import laya.ui.Button; import laya.ui.Panel; import laya.utils.Browser; import laya.utils.Handler; public class LayaUISample { public function LayaUISample() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.heigh...

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

40. 关于UI与3D场景的问题 [ 75%]

...请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: button.on(Laya.Event.CLICK, this, function(event:Laya.Event){ console.log("点击到了UI"); event.stopPropagation(); }); 完整代码 2018-05-30 0 17 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 你这个问题描述...

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