大约有 272 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0037 秒)
Laya3.0_api(107) Laya_社区(101) Laya2.0_api(21) laya_api(19) Laya2.0_文档(13) Laya3.0_文档(8) Laya2.0_示例(3)
...c/Protected All Inherited Externals Only exported Menu Globals "laya/utils/Handler" Handler Class Handler Handler 是事件处理器类。 推荐使用 Handler.create() 方法从对象池创建,减少对象创建消耗。创建的 Handler 对象不再使用后,可以使用 Handler.recover() 将...
来源: Laya3.0_api 发布时间: 20231115
回调函数... constructor(){ Laya.loader.load(this.skins, Handler.create(this, this.onUIAssetsLoaded)); } aaa() { } function onUIAssetsLoaded( this.aaa();//为什么回调函数不能调用,undefined } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20170626
....load怎么停止回调 this._load = Laya.loader.load(this._data.url, Laya.Handler.create(this, this.loadComplete), null, Laya.Loader.ATLAS); 如果我想在加载的过程中 不去触发 loadComplete方法 我该怎么办? this._load.off(Laya.Event.COMPLETE, this, this.loadComplete); 这个是...
来源: Laya_社区 发布时间: 20171221
... 上次发问题一直没有回复 Laya.loader.create("Main/SMain.ls",Laya.Handler.create(this,this.on3DComplete),Laya.Handler.create(this,this.onProgress,null,false)); Manager.prototype.onProgress = function(value) { console.log("value=="+Math.floor(value*100)+"%"); } 输出结果: 0.191865997...
来源: Laya_社区 发布时间: 20180717
...neLoadState.eLoadNull; // 地图创建完成回调函数 private _mCompleteHandler:Handler = null; private _mTest:number = 0; constructor(){ } /** * 创建地图,并显示当前场景 * @param conf 地图的配置信息 */ public create(conf:LevelConf, handler:Handler):void{ this._mLevelConf = con...
来源: Laya_社区 发布时间: 20180529
...2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); ...
来源: Laya_社区 发布时间: 20170804
...型 Laya.Event2.2 事件派发 Laya.EventDispatcher2.3 事件处理 Laya.Handler3. 自定义的事件事件管理 1. 认识事件 1.1 什么是事件 事件Event指的是由系统事先设定的、能被对象识别和响应的动作,事件是指对象对于外部动作的响应,当对方发生...
来源: Laya3.0_文档 发布时间: 20251010
...没反应 ts: /**视频广告 */ public static showVideoAd(success: Laya.Handler, type: string): void { if (GameConfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type); function back(...
来源: Laya_社区 发布时间: 20190524
...源,每次加载完成后回调loadselectanimation Laya.loader.load(picurl,Handler.create(this, this.loadselectanimation,arrr),null,Loader.ATLAS); 现在的问题是,同一个资源第二次加载的时候,就不执行回调函数了. 是不是第一次加载以后有缓存了,第二次就不加载...
来源: Laya_社区 发布时间: 20171103
...少了。是我哪里设置有问题么 创建树Tree 该怎么回调mouseHandler 形参该传什么 Laya.Handler.create 回调 执行回调函数时报is not a function Laya.loader.create 进度回调函数执行两次 问题状态 最新活动: 2019-10-31 16:24 浏览: 878 关注: 2 人
来源: Laya_社区 发布时间: 20191028