大约有 2,550 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0093 秒)
Laya_社区(1924) Laya3.0_api(163) laya_api(112) Laya2.0_api(107) Laya2.0_文档(76) Laya_示例(68) Laya2.0_示例(51) Laya3.0_文档(49)
...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、绑定键盘事件 Laya.stage.on(Event.KEY_DOWN, this, this.onStartMove); 2、打印 回调事件 onStartMove的 event参数,即可得到上图 版本: LayaAir 3.0.5 希望流程: 返回 正常的键盘 keyCode,如示例文档 附件 : --> 2023-10-1...
来源: Laya_社区 发布时间: 20231012
...理碰撞无法触发OnTriggerEnter、OnTriggerStay、OnTriggerExit的bug Event触发不了 Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,120元有偿悬赏解答 ios中没有触发事件前使用playSound没有声音 Event.CLOSE不触发 Laya2.0 的3D射线检测...
来源: Laya_社区 发布时间: 20170629
...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
...接 提交 1 个回复 cuixueying 赞同来自: 可以为舞台监听一个Event.RESIZE事件,在resize事件的回调里,判断Browser.width、Browser.height的值,以此来知道目前是横屏还是竖屏,动态的修改btn的位置即可! 2017-08-01 0 0 分享 微博 QZONE 微信 为...
来源: Laya_社区 发布时间: 20170801
..../../res/threeDimen/scene/PBRMaterialScene/Showcase.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Main Camera"); camera.addComponent(CameraMoveScript); camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; var skyBox = new Laya.SkyBox(); camera.sky...
来源: Laya_示例 发布时间: 20260303
...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
...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
...选项,如果你想判断是否旋转了,你可以为你的游戏添加Event.RESIZE事件即可,根据Browser.width和Browser.height的获取,可以判断当前屏幕的尺寸,以此来判断是否进行了屏幕旋转! 2017-04-05 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20170405
...按钮点击事件 点击后暂停游戏 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