大约有 414 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0035 秒)
...tring, data?: any): boolean Implementation of ISelect.event Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需要传递多个参数 p1,p2,p3,......
来源: Laya3.0_api 发布时间: 20231115
...nction KYModule() { } Laya.class(KYModule,"ky.module.KYModule",laya.events.EventDispatcher); KYModule.prototype.injectSource = function(json){ console.log("123"); } return KYModule; }());我如何再继承我写的这个KYModule? 我按常规js方式继承,IDE调试,都出现异常 2018-04-27 ...
来源: Laya_社区 发布时间: 20180427
...ules/UIElements/IMGUIContainer.cs:401) UnityEngine.Experimental.UIElements.EventDispatcher.ProcessEvent (UnityEngine.Experimental.UIElements.EventBase evt, UnityEngine.Experimental.UIElements.IPanel panel) (at D:/unity/Modules/UIElements/EventDispatcher.cs:511) UnityEngine.Experimental.UIElements.Ev...
来源: Laya_社区 发布时间: 20200109
...,仔细研究了源码,发现问题出在事件派发上 截图来自EventDispatcher 如图所示,当派发mouseup事件时,当前的type为mouseup,由于scrollBar移除了mouseUp事件,所以此时的this._events[type]是undefined,而源码中又去取undefined的run属性,肯定会报...
来源: Laya_社区 发布时间: 20211227
JS版派发自定义事件出错。 随便用一个类继承EventDispatcher, 然后注册个自定义type的事件,再抛出,出错 ---------------------------------- __proto.event 方法中 if (listener) { (data != null) ? listener.runWith(data) : listener.run(); } 出错,原因listener.me...
来源: Laya_社区 发布时间: 20170120
...fined 打包微信后,提示events为空.Object.defineProperty(laya.events.EventDispatcher.prototype,"_events",{enumerable:false,writable:true}); 手动log"laya"时发现为undefined 附件 : --> 2018-10-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20181009
...请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: Laya.EventDispatcher() 这个可以自定义事件 2019-05-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 慕玄离 相关问题 关于微信小游戏关系链的...
来源: Laya_社区 发布时间: 20190125
... 提交 1 个回复 bpmf_d 赞同来自: 是可以的 timeline 继承 EventDispatcher 可以用事件的方法做 https://ldc2.layabox.com/doc/?nav=zh-ts-1-5-2 也可以直接用编辑器做 2019-05-10 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先...
来源: Laya_社区 发布时间: 20181213
...言:ts Event的的target和currentTarget类型有错误,并不是所有EventDispatcher都是显示对象,比如访问网络的HttpRequest,希望改正 /** 事件目标触发对象。*/ target: laya.display.Sprite; /** 事件当前冒泡对象。*/ currentTarget: laya.display.Sprite; 2016-07-01...
来源: Laya_社区 发布时间: 20160701
...tError laya is not defined ReferenceError: laya is not defined at Function.EventDispatcher.__init$ (http://127.0.0.1:49737/game/code.js:613:26) at http://127.0.0.1:49737/game/code.js:15:71 at Array.forEach (<anonymous>) at Object.__init (http://127.0.0.1:49737/game/code.js:15:36) at http://127...
来源: Laya_社区 发布时间: 20180510