大约有 236 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0047 秒)
...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
...载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件加载出错 pub...
来源: Laya_社区 发布时间: 20161011
...**196 赞同来自: 2.0是不是ShurikenParticleSystem已经不是继承自EventDispatcher了。怎么监听事件? 2019-04-01 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 zfree 相关问题 unity导出粒子文件问题 缓动Tween...
来源: Laya_社区 发布时间: 20170512
...pRequest对XMLHttpRequest进行了简单的封装,HttpRequest继承的是EventDispatcher,具有事件派发的功能。我们写个简单的例子来看下用法: ```javascript //初始化引擎 Laya.init(1136,640); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时...
来源: Laya2.0_文档 发布时间: 20210714
...vent.COMPLETE,this,this.onAniComplete);但 Laya.Animator跟本没有继承EventDispatcher, 根本没有on函数啊, 我看了laya.d3.js, 播放完什么都没做,只调用了script.onStateExit if ((!islooping && elapsedPlaybackTime >=clipDuration)){ playState._finish=true; playState._...
来源: Laya_社区 发布时间: 20190112
...本没有被调用,也查找了Laya.Scene的父类一直到laya.events.EventDispatcher才发现有这个虚方法,但是不知道为什么进不去onEnable方法里面,求解
来源: Laya_社区 发布时间: 20190402
...个纹理处理类。 */ //class laya.resource.Texture extends laya.events.EventDispatcher var Texture=(function(_super){ function Texture(bitmap,uv){ /**图片或者canvas 。*/ //this.bitmap=null; /**UV信息。*/ //this.uv=null; /**沿 X 轴偏移量。*/ this.offsetX=0; /**沿 Y 轴偏移量。*...
来源: Laya_社区 发布时间: 20180504
...dio) return 1; return this._audio.volume; } } class MiniSound extends Laya.EventDispatcher { constructor() { super(); this.loaded = false; } static _createSound() { MiniSound._id++; return MiniAdpter.window.wx.createInnerAudioContext(); } load(url) { if (!MiniFileMgr.isLocalNativeFile(url)) { url = ...
来源: Laya_社区 发布时间: 20200103
....1.4 在代码中怎么使用 LayaAir引擎中用 HttpRequest 继承的是 EventDispatcher,具有事件派发的功能。加上本身具备发送请求的功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest =...
来源: Laya3.0_文档 发布时间: 20250104