大约有 37 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0032 秒)
...数执行两次 Laya.loader.create(["Main/SMain.ls","Role/Role.lh"],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.19186599730...
来源: Laya_社区 发布时间: 20180619
... 进度回调函数执行两次!!! 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_社区 发布时间: 20180620
一个list钟我添加了renderHandler回调但是里面的初始化回调执行了两次!!! 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying 赞同来自: 这个是正常的,对项目...
来源: Laya_社区 发布时间: 20170215
... 上次发问题一直没有回复 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
...aya.Tween.to(obGold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){ trace('obGold.value', obGold.value) }), 0) tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 ...
来源: Laya_社区 发布时间: 20190520
Laya.Handler为什么注册不成功? this.scrollView.mouseHandler = Laya.Handler.create(this,this.onScrollMouse) this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种...
来源: Laya_社区 发布时间: 20180814
...CK) { this.toggle && (this.selected = !this._selected); this._clickHandler && this._clickHandler.run(); return; } !this._selected && (this.state = Button.stateMap[e.type]); }上面逻辑当clickHander只执行一次的时候逻辑上有bug,Hander的run执行的时候如果...
来源: Laya_社区 发布时间: 20191112
list的Handler.create的点击事件第二次点击不生效 list.selectHandler = Handler.create(this,onRender, null, false);//滚动列表点击事件 private function onRender(index:int):void{ list.setItem(lastSelect,arrConver(lastSelect,false));//取消选中效果 list.setItem(index,arrConver(i...
来源: Laya_社区 发布时间: 20171129
[LayaAir3]clickHandler只会执行一次,之后点击不再触发 laya.3.0.9 //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { console.log("2d gamescene onEnable"); let btn:Laya.Button = LayaUtil.GetChildByPath(this.owner...
来源: Laya_社区 发布时间: 20231221
JS里面定义一个函数,无法使用Laya.Handler.creat回调 代码运行到Laya.Handler.create时候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.load...
来源: Laya_社区 发布时间: 20190130