大约有 37 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0042 秒)
LoaderManager progress的handler没有回收? 引擎版本:2.8.0 我发现loadermanger,progress的handler,没有recover。望官方确认。这个类使用频率太高了。 附件 : --> 2021-11-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20211109
Handler.create的回收问题 Handler.create的最后一个参数,官方解释是 once:Boolean (default = true) — 是否只执行一次,如果为true,回调后执行recover()进行回收,默认为true。可下面代码为什么结果是false? module laya { import Stage = Laya.Stage; impor...
来源: Laya_社区 发布时间: 20171221
Laya.Handler.create和new Laya.Handler有啥区别 this.sList.mouseHandler = Laya.Handler.create(this, this.onMouse);//鼠标响应事件 this.sList.mouseHandler = new Laya.Handler(this, this.onMouse) ; // 鼠标事件响应. 2017-04-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...
来源: Laya_社区 发布时间: 20170425
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @para...
来源: Laya_社区 发布时间: 20161205
List表单renderHandler问题 通过Handler.create()方法创建的渲染函数中,只会在表单第一格渲染时调用一次,便再也不被调用。而通过new Handler()创建的则一切正常。请问这是为啥啊= = 2018-07-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没...
来源: Laya_社区 发布时间: 20180704
... Laya.Scene3D; Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){ for(var i=0; i<3; i++){ var ball = myscene.addChild(sp.clone()); ball.name = i.toString();...
来源: Laya_社区 发布时间: 20200723
...,尤其是ui库。不要问我要demo,这种一眼就能看出问题,handler执行之前destroy必出问题 附件 : --> 2020-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox 赞同来自: 首...
来源: Laya_社区 发布时间: 20200909
...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 update这个 数值改变就会触发回调,也就是过程中的回调 2018-01-09 0 1 分享 微博 QZONE 微信 kezhiyu 赞同来自: let a = new...
来源: Laya_社区 发布时间: 20180109
...先声明一个预设变量{Laya.loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变...
来源: Laya_社区 发布时间: 20200104
...回收系统? SoundManager.playMusic("../../res/sounds/bgm.mp3", 1, new Handler(this, this.onComplete)); 像这样写的代码,会有很多音效,会不会被自动回收 2018-01-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...
来源: Laya_社区 发布时间: 20180119