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

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

721. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 72%]

...ic btnLogin:Laya.Button;  constructor(){ super();  this.btnLogin.on(Laya.Event.CLICK,this,()=>{ console.log('btnLogin click') }) }  createChildren(){ super.createChildren(); this.loadScene('LoginScene'); }   }     import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ e...

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

722. Button自定义属性 [ 72%]

...lt; len; ++i){ let btn:Laya.Button = this.main.getchildbuy(i); btn.on(Laya.Event.CLICK,this.this.clickHandle); btn.xx = "xxx"; } private clickHandle(e:Laya.Event):void{ } 类似于我想给btn绑定“xxx”数据,用来给后面点击获取

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

723. 网络send 不回调?什么情况? [ 72%]

...链接 提交 3 个回复 windsoul85 赞同来自:   没有引用  var Event       = Laya.Event; 2017-09-14 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: windsoul85 有问题再联系... 2017-09-14 1 0 分享 微博 QZONE 微信 windsoul85 赞同来自: @layabox 2017-09-...

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

724. laya.d3.core.pixelline.PixelLineSprite3D_API3.0 [ 72%]

...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

725. 关于定位的问题 [ 72%]

...接 提交 1 个回复 cuixueying 赞同来自: 可以为舞台监听一个Event.RESIZE事件,在resize事件的回调里,判断Browser.width、Browser.height的值,以此来知道目前是横屏还是竖屏,动态的修改btn的位置即可! 2017-08-01 0 0 分享 微博 QZONE 微信 为...

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

726. 播放骨骼动画 [ 72%]

...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

727. laya.ui.Tab [ 72%]

...| All Classes | Index | Frames No Frames TabProperties | Methods | Events Packagelaya.uiClasspublic class TabInheritanceTab UIGroup Box UIComponent Sprite Node EventDispatcher Object Tab 组件用来定义选项卡按钮组。 Public Properties Hide Inherited Public Properties Show Inherited...

来源: Laya2.0_api 发布时间: 20190513

728. on和off的bug [ 72%]

on和off的bug 是这样的,我写了类似这样的代码a.on(Laya.Event.MOUSE_DOWN, this, onStartDrag); 之后我想去掉拖动,就写了a.off(Laya.Event.MOUSE_DOWN, this, onStartDrag); 但发现不行,于是我改成a.offAll(); 就可以了。 需要说明的是onStartDrag是函数内定...

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

729. TS setExternalLinkEx問題 [ 72%]

...nimationFrame(render); } window.requestAnimationFrame(render); document.addEventListener('touchstart',()=>{ if(Browser.window.conch){ var l = 50; var t = 50; var w = window.innerWidth-l*2; var h = window.innerHeight-t*2; Browser.window.conch.setExternalLinkEx('http://www.layabox.com',l,t,w,h,true...

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

730. js飞机大战报错 请大神看看 [ 72%]

...按钮点击事件 点击后暂停游戏         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