大约有 2,666 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
Laya_社区(2033) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(82) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(50)
on和off的bug 是这样的,我写了类似这样的代码a.on(Laya.Event.MOUSE_DOWN, this, onStartDrag); 之后我想去掉拖动,就写了a.off(Laya.Event.MOUSE_DOWN, this, onStartDrag); 但发现不行,于是我改成a.offAll(); 就可以了。 需要说明的是onStartDrag是函数内定...
来源: Laya_社区 发布时间: 20180828
...问 在场景中有一个按钮组件,设置了监听 this.btn.on(Laya.Event.CLICK, this, this.changeData);,, 然后切换场景 ,是不是要在 onDestroy(): void { if (this.btn) { // 清理所有以 this 为 caller 的事件 this.btn.offA...
来源: Laya_社区 发布时间: 20260114
...ll Classes | Index | Frames No Frames ComboBoxProperties | Methods | Events Packagelaya.uiClasspublic class ComboBoxInheritanceComboBox UIComponent Sprite Node EventDispatcher Object ComboBox 组件包含一个下拉列表,用户可以从该列表中选择单个值。 Public Properties Hide...
来源: Laya2.0_api 发布时间: 20190513
... this.changeSelectStatus(); this.event(/*laya.events.Event.CHANGE*/"change"); this.selectHandler && this.selectHandler.runWith(value); this.startIndex=this._startIndex; //} }); 20...
来源: Laya_社区 发布时间: 20180507
...理加载时,drawTexture方法报错 if (!tex.loaded){ tex.once(/*laya.events.Event.LOADED*/"loaded",this,this._textureLoaded,[tex,args]); }drawTexture方法最下方有上面这一段代码,作用大概是第一加载失败时,再重新加载一遍。本来是挺好的,但是tex.once却会...
来源: Laya_社区 发布时间: 20180724
...tar:Laya.Skeleton; this.factory = new Laya.Templet(); this.factory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.factory.on(Laya.Event.ERROR, this, this.onError); this.factory.loadAni("sp/aa.sk"); this.avatar = this.factory.buildArmature(0); this.avatar.play(0,true); 2017-07-18 添加评...
来源: Laya_社区 发布时间: 20170718
...ildAt addChildren addComponent addComponentInstance addLine addLines bubbleEvent callLater clear clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents getLine hasHideFlag hasListener isAncestorOf off offAll offA...
来源: Laya3.0_api 发布时间: 20231115
...接 提交 1 个回复 cuixueying 赞同来自: 可以为舞台监听一个Event.RESIZE事件,在resize事件的回调里,判断Browser.width、Browser.height的值,以此来知道目前是横屏还是竖屏,动态的修改btn的位置即可! 2017-08-01 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20170801
... Classes | Index | Frames No Frames RadioGroupProperties | Methods | Events Packagelaya.uiClasspublic class RadioGroupInheritanceRadioGroup UIGroup Box UIComponent Sprite Node EventDispatcher Object RadioGroup 控件定义一组 Radio 控件,这些控件相互排斥; 因此,用户每次...
来源: Laya2.0_api 发布时间: 20190513
...按钮点击事件 点击后暂停游戏 this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick); // 初始化UI 显示 this.reset(); } ... "Cannot read property 'on' of undefined" "TypeError: Cannot read property 'on' of undefined at new ...
来源: Laya_社区 发布时间: 20171118