• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 303 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)

171. laya.ui.HSlider_API3.0 [ 68%]

...in addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

来源: Laya3.0_api 发布时间: 20231115

172. laya.ui.VSlider_API3.0 [ 68%]

...in addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender destroy destroyChildren drawToCanvas drawToTexture drawToTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getChildAt getChildByName getChildIndex getCo...

来源: Laya3.0_api 发布时间: 20231115

173. [LayaAir3]list.selectHandler [ 67%]

...e.log(this.btn.selected); }break; shiyang • 2024-10-28 09:48 可以判断event.type == click执行你的逻辑 学思无涯 • 2024-10-28 10:43 @shiyang:赞赞赞

来源: Laya_社区 发布时间: 20241014

174. 关于3D动画的ani监听播放完毕后,播放默认动画不行 [ 67%]

...的ani监听播放完毕后,播放默认动画不行 this.mAni.on(Laya.Event.COMPLETE,this,this.aniComplete); this.mAni.play("free") aniComplete(type:number):void {    this.mAni.play("ready"); }   播放完指定动画后,这个回调不执行。   附件 : --> pkwang3D.rar 2017-11-16 添加...

来源: Laya_社区 发布时间: 20171116

175. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...ton}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只包含 AppID。 (图2-2) 在Steam客...

来源: Laya3.0_文档 发布时间: 20251010

176. list 数据不会及时渲染 [ 67%]

...       }           private function onSelect(cardList:List, evt:Event, index:int):void         {             var cell:Box = cardList.getCell(index);             if(cell){                 if(evt.type == Event.CLICK){                      // ...

来源: Laya_社区 发布时间: 20170310

177. MovieClip的target和currentTarget属性为undefined? [ 67%]

...){ var mc:MovieClip = new MovieClip; mc.load(ul); this.addChild(mc); mc.on(Event.COMPLETE,this,stopNowMC) } } private function stopNowMC(e:Event):void{ trace(e.currentTarget); trace(e.target); MovieClip(e.currentTarget).gotoAndStop(MovieClip(e.target).count-1); } AS3代码是这样的,但是COMPLE...

来源: Laya_社区 发布时间: 20161221

178. 关闭指定定时器timer [ 67%]

...器还在继续调用回调,并没有报错。this.StartToRound.on(Laya.Event.CLICK,null,function(){ Laya.timer.loop(10,this,round);//10ms 一秒100次 }); //转动逻辑 function round(){ tlate.rotation+=roundTurnChange(1); console.log(tlate.rotation); } //转动变量变化 function roundTurnCha...

来源: Laya_社区 发布时间: 20160718

179. 组件脚本的内置方法 · LayaAir3.4 · 引擎文档 · LAYABOX [ 67%]

...象池中。 ani.getControllerLayer().defaultState.on(Laya.AnimatorState2D.EVENT_OnStateExit, () => { aniNode.removeSelf();//删除动画节点 Laya.Pool.recover("effect", aniNode);//回收动画预制体到对象池中,方便下次复用。 }); return aniNode; } //组件被禁用时执行 onDi...

来源: Laya3.0_文档 发布时间: 20251010

180. 如何获取list下单元格的坐标点? [ 66%]

... list.mouseHandler=new Handler(this,onClick); } private function onClick(e:Event,index:int):void { if(e.type==Event.CLICK) { trace("xy:"+list.getCell(index).x,list.getCell(index).y); } }上面的坐标是相对于list本身的,如果你想取得全局坐标可以通过localToGlobal方法来得到...

来源: Laya_社区 发布时间: 20161215