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

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

711. 获取鼠标当前状态 [ 73%]

...: 与内容相关的链接 提交 1 个回复 leisure 赞同来自: Laya.Event.MOUSE_OUT 完全解决这个问题啊 2018-02-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 laya2902 相关问题 请问有没有方法能够获取“鼠...

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

712. laya.ui.Radio [ 73%]

... All Classes | Index | Frames No Frames RadioProperties | Methods | Events Packagelaya.uiClasspublic class RadioInheritanceRadio Button Component Sprite Node EventDispatcher Object Radio 控件使用户可在一组互相排斥的选择中做出一种选择。 用户一次只能选择 Radio ...

来源: laya_api 发布时间: 20170929

713. 2.12.2beta1 诸多bug [ 73%]

...FFFFFF;font-weight:bold'>HTMLDivElement</span>"; ele.on(Laya.Event.LINK, this, (event: Laya.Event) => { console.log(event); }); Laya.stage.addChild(ele); zyy • 2021-11-09 13:51 @Laya_Fred: 这段代码 很简单 只是点击 输出 event 如果 把Laya.stage.y 向下调整 就会...

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

714. laya.ui.ProgressBar [ 73%]

...Classes | Index | Frames No Frames ProgressBarProperties | Methods | Events Packagelaya.uiClasspublic class ProgressBarInheritanceProgressBar Component Sprite Node EventDispatcher Object ProgressBar 组件显示内容的加载进度。 Public Properties Hide Inherited Public Properties Show I...

来源: laya_api 发布时间: 20170929

715. 事件函数作用域问题 [ 73%]

事件函数作用域问题 1. this.btn_Login.on(Laya.Event.CLICK, null, ()=>{ if (this.loginDig) { this.loginDig.removeSelf(); this.loginDig.destroy(); } 2.this.btn_ok.on(Laya.Event.RIGHT_CLICK, this, this.OnBut_Open); OnBut_Open() : void { this.removeSelf(); this.destroy(); } 就是这两个...

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

716. 在UI类里调用启动类的静态函数失败了 [ 73%]

...o extends ui.GameInfoUI { constructor() { super(); this.kaishi_btn.on(Laya.Event.MOUSE_DOWN, this, this.onStart); // Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.birdFly);//可以绑定两个函数 Laya.stage.on(Laya.Event.KEY_DOWN, this, this.birdFly); this.init(); } public init(): void { Laya.T...

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

717. 事件绑定不触发bug [ 73%]

事件绑定不触发bug         var Event   = Laya.Event;         var Sprite  = Laya.Sprite;         var Stage   = Laya.Stage;         var Texture = Laya.Texture;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var WebGL   = L...

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

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

...ic btnLogin:Laya.Button;  constructor(){ super();  this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) }  createChildren(){ super.createChildren(); this.loadScene('LoginScene'); }   }     import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ e...

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

719. unity 带出报错~ArgumentException: Invalid path [ 73%]

...ockArea.cs:341) UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize) (at D:/unity/Modules/UIElements/IMGUIContainer.cs:298) UnityEngine.UIElements.IMG...

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

720. 键盘事件回调参数错误 [ 72%]

...调参数错误 重现步骤: 1、绑定键盘事件    Laya.stage.on(Event.KEY_DOWN, this, this.onStartMove); 2、打印 回调事件 onStartMove的 event参数,即可得到上图 版本: LayaAir 3.0.5 希望流程: 返回 正常的键盘 keyCode,如示例文档 附件 : --> 2023-10-1...

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